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: Ubuntu-5.2.0-15.16~20402^2~6 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=730e908f3539066d4aa01f4720ebfc750ce4d045;p=mirror_ubuntu-eoan-kernel.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 b954878ad6ce..b9b45fc2903e 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 */