Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

Al Viro 730e908f a63ab94d

+1 -6
+1 -6
fs/nilfs2/inode.c
··· 801 801 802 802 int nilfs_permission(struct inode *inode, int mask, unsigned int flags) 803 803 { 804 - struct nilfs_root *root; 805 - 806 - if (flags & IPERM_FLAG_RCU) 807 - return -ECHILD; 808 - 809 - root = NILFS_I(inode)->i_root; 804 + struct nilfs_root *root = NILFS_I(inode)->i_root; 810 805 if ((mask & MAY_WRITE) && root && 811 806 root->cno != NILFS_CPTREE_CURRENT_CNO) 812 807 return -EROFS; /* snapshot is not writable */