From: Alexander.Boyko Date: Mon, 7 Nov 2011 15:22:26 +0000 (+0300) Subject: LU-826 mdd: Fix for mdd_lov_create_finish memory free X-Git-Tag: 2.1.52~5 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=22756c797c3dffcdcb57c04f96d348ac1a6258bf;hp=9472950e4a6c1dbbd5ad1abd2334904376551281 LU-826 mdd: Fix for mdd_lov_create_finish memory free At lov/lov_pack.c lov_packmd() use OBD_ALLOC_LARGE for memory allocation for lov_mds_md object(lmpp), but mdd_lov_create_finish use OBD_FREE to free memory. This bug doesn`t affect to current version, but may be relevant in future. Signed-off-by: Alexander Boyko Change-Id: Ic37cb72022b9aac02368b11f370cbaad0c730e7c Reviewed-on: http://review.whamcloud.com/1659 Tested-by: Hudson Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/mdd/mdd_lov.c b/lustre/mdd/mdd_lov.c index 860d19d..46d1580 100644 --- a/lustre/mdd/mdd_lov.c +++ b/lustre/mdd/mdd_lov.c @@ -376,7 +376,7 @@ void mdd_lov_create_finish(const struct lu_env *env, struct mdd_device *mdd, const struct md_op_spec *spec) { if (lmm && !spec->no_create) - OBD_FREE(lmm, lmm_size); + OBD_FREE_LARGE(lmm, lmm_size); } int mdd_lov_create(const struct lu_env *env, struct mdd_device *mdd,