nilfs2_permission() doesn't need to bail out in RCU mode
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 19 Jun 2011 00:21:44 +0000 (20:21 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 20 Jun 2011 14:44:33 +0000 (10:44 -0400)
Nothing blocking except for generic_permission().  Which will DTRT.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nilfs2/inode.c

index b954878..b9b45fc 100644 (file)
@@ -801,12 +801,7 @@ out_err:
 
 int nilfs_permission(struct inode *inode, int mask, unsigned int flags)
 {
-       struct nilfs_root *root;
-
-       if (flags & IPERM_FLAG_RCU)
-               return -ECHILD;
-
-       root = NILFS_I(inode)->i_root;
+       struct nilfs_root *root = NILFS_I(inode)->i_root;
        if ((mask & MAY_WRITE) && root &&
            root->cno != NILFS_CPTREE_CURRENT_CNO)
                return -EROFS; /* snapshot is not writable */