projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4969c06
)
f2fs: allow all the users to pin a file
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 5 Jul 2019 06:03:08 +0000
(23:03 -0700)
committer
Jaegeuk 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
patch
|
blob
|
history
diff --git
a/fs/f2fs/file.c
b/fs/f2fs/file.c
index b164f48e0f315c41f3baeb06a01d9cf0e748c573..f8d46df8fa9ee5cd91813b2de5e735e39a2ad4c5 100644
(file)
--- 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;