Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
b=6379
[fs/lustre-release.git]
/
lustre
/
mds
/
mds_open.c
diff --git
a/lustre/mds/mds_open.c
b/lustre/mds/mds_open.c
index
57256fe
..
645d2aa
100644
(file)
--- a/
lustre/mds/mds_open.c
+++ b/
lustre/mds/mds_open.c
@@
-1434,6
+1434,8
@@
int mds_mfd_close(struct ptlrpc_request *req, int offset,
last_orphan = mds_orphan_open_dec_test(inode) &&
mds_inode_is_orphan(inode);
+ if (last_orphan && unlink_orphan)
+ mds_inode_unset_orphan(inode);
UP_WRITE_I_ALLOC_SEM(inode);
/* this is half of the actual "close" */