diff options
author | Anatol Pomozov <anatol.pomozov@gmail.com> | 2013-01-15 01:30:00 -0500 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2013-01-31 11:08:10 -0500 |
commit | c2132c1bc73d9a279cec148f74ea709c960b3d89 (patch) | |
tree | 46006804ce8e576513e2844c4696593373cf33a4 /fs/fuse/inode.c | |
parent | fb05f41f5f96f7423c53da4d87913fb44fd0565d (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/inode.c')
-rw-r--r-- | fs/fuse/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 9d95a5a3d55c..79b70deb7cd6 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -408,7 +408,7 @@ static int fuse_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
408 | struct fuse_statfs_out outarg; | 408 | struct fuse_statfs_out outarg; |
409 | int err; | 409 | int err; |
410 | 410 | ||
411 | if (!fuse_allow_task(fc, current)) { | 411 | if (!fuse_allow_current_process(fc)) { |
412 | buf->f_type = FUSE_SUPER_MAGIC; | 412 | buf->f_type = FUSE_SUPER_MAGIC; |
413 | return 0; | 413 | return 0; |
414 | } | 414 | } |