From: Al Viro Date: Sun, 19 Jun 2011 00:21:44 +0000 (-0400) Subject: nilfs2_permission() doesn't need to bail out in RCU mode X-Git-Tag: v3.12-rc1~5540^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=730e908f3539066d4aa01f4720ebfc750ce4d045;p=kernel%2Fkernel-generic.git 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 --- 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 */