From: Jaegeuk Kim Date: Fri, 5 Jul 2019 06:03:08 +0000 (-0700) Subject: f2fs: allow all the users to pin a file X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b13bdf03bb8007279bb0efdf127bafb2d84e8b0a;p=linux.git f2fs: allow all the users to pin a file This patch allows users to pin files. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index b164f48e0f315..f8d46df8fa9ee 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;