X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Flov%2Flov_pack.c;h=9e09afd1382995ac0ae1d8736c79f3eb3bc6d713;hb=cec72a356891eaa729314a7bc89c4b2aaef0a31b;hp=33b1a79f2ba6883b09e9b255027638736e8220c8;hpb=4f8b7393063e2e14dbd46f899dfbf20c7b646af8;p=fs%2Flustre-release.git diff --git a/lustre/lov/lov_pack.c b/lustre/lov/lov_pack.c index 33b1a79..9e09afd 100644 --- a/lustre/lov/lov_pack.c +++ b/lustre/lov/lov_pack.c @@ -187,13 +187,13 @@ int lov_packmd(struct obd_export *exp, struct lov_mds_md **lmmp, if (*lmmp && !lsm) { stripe_count = le32_to_cpu((*lmmp)->lmm_stripe_count); lmm_size = lov_mds_md_size(stripe_count, lmm_magic); - OBD_FREE(*lmmp, lmm_size); + OBD_FREE_LARGE(*lmmp, lmm_size); *lmmp = NULL; RETURN(0); } if (!*lmmp) { - OBD_ALLOC(*lmmp, lmm_size); + OBD_ALLOC_LARGE(*lmmp, lmm_size); if (!*lmmp) RETURN(-ENOMEM); } @@ -271,7 +271,7 @@ static int lov_verify_lmm(void *lmm, int lmm_bytes, int *stripe_count) CERROR("bad disk LOV MAGIC: 0x%08X; dumping LMM (size=%d):\n", le32_to_cpu(*(__u32 *)lmm), lmm_bytes); sz = lmm_bytes * 2 + 1; - OBD_ALLOC(buffer, sz); + OBD_ALLOC_LARGE(buffer, sz); if (buffer != NULL) { int i; @@ -279,7 +279,7 @@ static int lov_verify_lmm(void *lmm, int lmm_bytes, int *stripe_count) sprintf(buffer+2*i, "%.2X", ((char *)lmm)[i]); buffer[sz] = '\0'; CERROR("%s\n", buffer); - OBD_FREE(buffer, sz); + OBD_FREE_LARGE(buffer, sz); } return -EINVAL; }