From 760b69ace9f2a8e604e3f7e4cc76f916d6c15d26 Mon Sep 17 00:00:00 2001 From: wangdi Date: Mon, 21 Aug 2006 15:27:45 +0000 Subject: [PATCH] Branch: b_new_cmd inherit parent lmm, only if parent is not NULL --- lustre/mdd/mdd_lov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.8.3.1