Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b13bdf03 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: allow all the users to pin a file



This patch allows users to pin files.

Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 4969c06a
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;