Whamcloud - gitweb
LU-15168 osd: use large allocation for idc cache
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_handler.c
index 34f8465..756a0fc 100644 (file)
@@ -212,13 +212,13 @@ osd_idc_add(const struct lu_env *env, struct osd_device *osd,
                i = oti->oti_ins_cache_size * 2;
                if (i == 0)
                        i = OSD_INS_CACHE_SIZE;
-               OBD_ALLOC_PTR_ARRAY(idc, i);
+               OBD_ALLOC_PTR_ARRAY_LARGE(idc, i);
                if (idc == NULL)
                        return ERR_PTR(-ENOMEM);
                if (oti->oti_ins_cache != NULL) {
                        memcpy(idc, oti->oti_ins_cache,
                               oti->oti_ins_cache_used * sizeof(*idc));
-                       OBD_FREE_PTR_ARRAY(oti->oti_ins_cache,
+                       OBD_FREE_PTR_ARRAY_LARGE(oti->oti_ins_cache,
                                           oti->oti_ins_cache_used);
                }
                oti->oti_ins_cache = idc;
@@ -7737,7 +7737,7 @@ static void osd_key_fini(const struct lu_context *ctx,
        lu_buf_free(&info->oti_big_buf);
        if (idc != NULL) {
                LASSERT(info->oti_ins_cache_size > 0);
-               OBD_FREE_PTR_ARRAY(idc, info->oti_ins_cache_size);
+               OBD_FREE_PTR_ARRAY_LARGE(idc, info->oti_ins_cache_size);
                info->oti_ins_cache = NULL;
                info->oti_ins_cache_size = 0;
        }