Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75f858e
)
Branch: b_new_cmd
author
wangdi
<wangdi>
Wed, 2 Aug 2006 15:21:41 +0000
(15:21 +0000)
committer
wangdi
<wangdi>
Wed, 2 Aug 2006 15:21:41 +0000
(15:21 +0000)
only do unlink log when there is lmm
lustre/mdd/mdd_handler.c
patch
|
blob
|
history
diff --git
a/lustre/mdd/mdd_handler.c
b/lustre/mdd/mdd_handler.c
index
b3b7f98
..
04c6538
100644
(file)
--- 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);
}