mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 21:20:50 +07:00
[PATCH] fuse: remove dead code from fuse_permission
The -EROFS check has moved up to permission() in the VFS a while ago. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
274b69335d
commit
d8ba3b7310
@ -491,9 +491,6 @@ static int fuse_permission(struct inode *inode, int mask, struct nameidata *nd)
|
|||||||
return err;
|
return err;
|
||||||
} else {
|
} else {
|
||||||
int mode = inode->i_mode;
|
int mode = inode->i_mode;
|
||||||
if ((mask & MAY_WRITE) && IS_RDONLY(inode) &&
|
|
||||||
(S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)))
|
|
||||||
return -EROFS;
|
|
||||||
if ((mask & MAY_EXEC) && !S_ISDIR(mode) && !(mode & S_IXUGO))
|
if ((mask & MAY_EXEC) && !S_ISDIR(mode) && !(mode & S_IXUGO))
|
||||||
return -EACCES;
|
return -EACCES;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user