diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-19 00:21:44 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-20 14:44:33 (GMT) |
commit | 730e908f3539066d4aa01f4720ebfc750ce4d045 (patch) | |
tree | de7b93574d60071b5d2c428cc3ff1a524eac3cd0 /fs/nilfs2/inode.c | |
parent | a63ab94d67879bc0630ea9821c582ddf58ba5527 (diff) | |
download | linux-fsl-qoriq-730e908f3539066d4aa01f4720ebfc750ce4d045.tar.xz |
nilfs2_permission() doesn't need to bail out in RCU mode
Nothing blocking except for generic_permission(). Which will DTRT.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nilfs2/inode.c')
-rw-r--r-- | fs/nilfs2/inode.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c index b954878..b9b45fc 100644 --- a/fs/nilfs2/inode.c +++ b/fs/nilfs2/inode.c @@ -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 */ |