From: wangdi Date: Mon, 21 Aug 2006 15:27:45 +0000 (+0000) Subject: Branch: b_new_cmd X-Git-Tag: v1_8_0_110~486^2~1129 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=760b69ace9f2a8e604e3f7e4cc76f916d6c15d26;p=fs%2Flustre-release.git Branch: b_new_cmd inherit parent lmm, only if parent is not NULL --- diff --git a/lustre/mdd/mdd_lov.c b/lustre/mdd/mdd_lov.c index 8846b53..3a38372 100644 --- a/lustre/mdd/mdd_lov.c +++ b/lustre/mdd/mdd_lov.c @@ -367,7 +367,7 @@ int mdd_lov_create(const struct lu_context *ctxt, struct mdd_device *mdd, 0, &lsm, (void*)eadata); if (rc) GOTO(out_oa, rc); - } else { + } else if (parent != NULL) { /* get lov ea from parent and set to lov */ struct lov_mds_md *__lmm; int __lmm_size, returned_lmm_size;