diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-07-04 23:03:08 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-07-10 18:13:42 -0700 |
commit | b13bdf03bb8007279bb0efdf127bafb2d84e8b0a (patch) | |
tree | 7de9ba0e7aa14cb7ca8dea7d3dea86a5bc676f11 /fs/f2fs | |
parent | 4969c06a0d83c9c3dc50b8efcdc8eeedfce896f6 (diff) | |
download | linux-b13bdf03bb8007279bb0efdf127bafb2d84e8b0a.tar.gz linux-b13bdf03bb8007279bb0efdf127bafb2d84e8b0a.tar.bz2 linux-b13bdf03bb8007279bb0efdf127bafb2d84e8b0a.zip |
f2fs: allow all the users to pin a file
This patch allows users to pin files.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/file.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index b164f48e0f31..f8d46df8fa9e 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -2964,9 +2964,6 @@ static int f2fs_ioc_set_pin_file(struct file *filp, unsigned long arg) __u32 pin; int ret = 0; - if (!capable(CAP_SYS_ADMIN)) - return -EPERM; - if (get_user(pin, (__u32 __user *)arg)) return -EFAULT; |