f2fs: allow all the users to pin a file
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 5 Jul 2019 06:03:08 +0000 (23:03 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 11 Jul 2019 01:13:42 +0000 (18:13 -0700)
This patch allows users to pin files.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c

index b164f48..f8d46df 100644 (file)
@@ -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;