Skip to content

Commit

Permalink
f2fs: allow all the users to pin a file
Browse files Browse the repository at this point in the history
This patch allows users to pin files.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
  • Loading branch information
Jaegeuk Kim committed Jul 11, 2019
1 parent 4969c06 commit b13bdf0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/f2fs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b13bdf0

Please sign in to comment.