diff options
author | Christoph Hellwig <hch@lst.de> | 2005-11-07 09:59:26 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 16:53:37 +0100 |
commit | d8ba3b731086bcae5468f9ea509f39a921b3f9a6 (patch) | |
tree | cf75a8ea1bad960b431dccceae83b4ac09729399 /fs/fuse | |
parent | [PATCH] dell_rbu: Adding BIOS memory floor support (diff) | |
download | linux-d8ba3b731086bcae5468f9ea509f39a921b3f9a6.tar.xz linux-d8ba3b731086bcae5468f9ea509f39a921b3f9a6.zip |
[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>
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/dir.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 70dba721acab..61b58fdd973e 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -491,9 +491,6 @@ static int fuse_permission(struct inode *inode, int mask, struct nameidata *nd) return err; } else { 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)) return -EACCES; return 0; |