summaryrefslogtreecommitdiff
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-12 18:35:32 -0700
commit9b927b83db2097f001072cd955ea8287d0ca4a32 (patch)
treed750294b2975e7b3dbba031196f37e8448c9d7fc /fs/f2fs
parent716865470c12305620920d1b1ecb125ddc4880d2 (diff)
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 dca0b4a45ec3..6a19adbf1604 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -2747,9 +2747,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;