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:
cf1dac6
)
b=22177 fix error message in mds_mfd_close()
author
Johann Lombardi
<johann@sun.com>
Tue, 23 Mar 2010 15:00:13 +0000
(16:00 +0100)
committer
Johann Lombardi
<johann@sun.com>
Tue, 23 Mar 2010 15:00:13 +0000
(16:00 +0100)
i=adilger
Fix error messages in mds_mfd_close() since it is now
legitimate to have i_nlink = 1 for dirs in /PENDING.
lustre/mds/mds_open.c
patch
|
blob
|
history
diff --git
a/lustre/mds/mds_open.c
b/lustre/mds/mds_open.c
index
4feb1d8
..
31e1768
100644
(file)
--- a/
lustre/mds/mds_open.c
+++ b/
lustre/mds/mds_open.c
@@
-1496,7
+1496,7
@@
int mds_mfd_close(struct ptlrpc_request *req, int offset,
CDEBUG(D_INODE, "destroying orphan object %s\n", fidname);
if ((S_ISREG(inode->i_mode) && inode->i_nlink != 1) ||
- (S_ISDIR(inode->i_mode) && inode->i_nlink
!=
2))
+ (S_ISDIR(inode->i_mode) && inode->i_nlink
>
2))
CERROR("found \"orphan\" %s %s with link count %d\n",
S_ISREG(inode->i_mode) ? "file" : "dir",
fidname, inode->i_nlink);