Whamcloud - gitweb
b=22177 fix error message in mds_mfd_close()
authorJohann Lombardi <johann@sun.com>
Tue, 23 Mar 2010 15:00:13 +0000 (16:00 +0100)
committerJohann 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

index 4feb1d8..31e1768 100644 (file)
@@ -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);