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>
This commit is contained in:
parent
a63ab94d67
commit
730e908f35
1 changed files with 1 additions and 6 deletions
|
@ -801,12 +801,7 @@ out_err:
|
||||||
|
|
||||||
int nilfs_permission(struct inode *inode, int mask, unsigned int flags)
|
int nilfs_permission(struct inode *inode, int mask, unsigned int flags)
|
||||||
{
|
{
|
||||||
struct nilfs_root *root;
|
struct nilfs_root *root = NILFS_I(inode)->i_root;
|
||||||
|
|
||||||
if (flags & IPERM_FLAG_RCU)
|
|
||||||
return -ECHILD;
|
|
||||||
|
|
||||||
root = NILFS_I(inode)->i_root;
|
|
||||||
if ((mask & MAY_WRITE) && root &&
|
if ((mask & MAY_WRITE) && root &&
|
||||||
root->cno != NILFS_CPTREE_CURRENT_CNO)
|
root->cno != NILFS_CPTREE_CURRENT_CNO)
|
||||||
return -EROFS; /* snapshot is not writable */
|
return -EROFS; /* snapshot is not writable */
|
||||||
|
|
Loading…
Add table
Reference in a new issue