summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2019-07-04 23:03:08 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2019-07-10 18:13:42 -0700
commitb13bdf03bb8007279bb0efdf127bafb2d84e8b0a (patch)
tree7de9ba0e7aa14cb7ca8dea7d3dea86a5bc676f11 /fs/f2fs
parent4969c06a0d83c9c3dc50b8efcdc8eeedfce896f6 (diff)
downloadlinux-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.c3
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;