From 8d7f94fe6be618dc38bced62b10e446bc14c39b9 Mon Sep 17 00:00:00 2001 From: wangdi Date: Wed, 2 Aug 2006 15:21:41 +0000 Subject: [PATCH] Branch: b_new_cmd only do unlink log when there is lmm --- lustre/mdd/mdd_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mdd/mdd_handler.c b/lustre/mdd/mdd_handler.c index b3b7f98..04c6538 100644 --- a/lustre/mdd/mdd_handler.c +++ b/lustre/mdd/mdd_handler.c @@ -718,7 +718,7 @@ static int mdd_unlink(const struct lu_context *ctxt, struct md_object *pobj, /* unlink dotdot */ __mdd_ref_del(ctxt, mdd_pobj, handle, NULL); } - if (S_ISREG(ma->ma_attr.la_mode) && + if (S_ISREG(ma->ma_attr.la_mode) && (ma->ma_valid & MA_LOV) && ma->ma_attr.la_nlink == 0 && cobj->mo_lu.lo_header->loh_ref == 1) { rc = mdd_unlink_log(ctxt, mdd, mdd_cobj, ma); } -- 1.8.3.1