aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/file.c
diff options
context:
space:
mode:
authorAnatol Pomozov <anatol.pomozov@gmail.com>2013-01-15 01:30:00 -0500
committerMiklos Szeredi <mszeredi@suse.cz>2013-01-31 11:08:10 -0500
commitc2132c1bc73d9a279cec148f74ea709c960b3d89 (patch)
tree46006804ce8e576513e2844c4696593373cf33a4 /fs/fuse/file.c
parentfb05f41f5f96f7423c53da4d87913fb44fd0565d (diff)
Do not use RCU for current process credentials
Commit c69e8d9c0 added rcu lock to fuse/dir.c It was assuming that 'task' is some other process but in fact this parameter always equals to 'current'. Inline this parameter to make it more readable and remove RCU lock as it is not needed when access current process credentials. Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/file.c')
-rw-r--r--fs/fuse/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 28bc9c672196..a010585b0a74 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -2082,7 +2082,7 @@ long fuse_ioctl_common(struct file *file, unsigned int cmd,
2082 struct inode *inode = file->f_dentry->d_inode; 2082 struct inode *inode = file->f_dentry->d_inode;
2083 struct fuse_conn *fc = get_fuse_conn(inode); 2083 struct fuse_conn *fc = get_fuse_conn(inode);
2084 2084
2085 if (!fuse_allow_task(fc, current)) 2085 if (!fuse_allow_current_process(fc))
2086 return -EACCES; 2086 return -EACCES;
2087 2087
2088 if (is_bad_inode(inode)) 2088 if (is_bad_inode(inode))