projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
787bd26
)
f2fs: switch to fscrypt_prepare_link()
author
Eric Biggers
<ebiggers@google.com>
Wed, 29 Nov 2017 20:35:29 +0000
(12:35 -0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Sat, 27 Jan 2018 21:29:15 +0000
(13:29 -0800)
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/namei.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/namei.c
b/fs/f2fs/namei.c
index 28bdf8828e73cdaa785ff988c94d61aead3af547..dcf5c3a9705995aaba1a81e8e71ab59a65c18b0f 100644
(file)
--- a/
fs/f2fs/namei.c
+++ b/
fs/f2fs/namei.c
@@
-240,9
+240,9
@@
static int f2fs_link(struct dentry *old_dentry, struct inode *dir,
if (unlikely(f2fs_cp_error(sbi)))
return -EIO;
- if (f2fs_encrypted_inode(dir) &&
-
!fscrypt_has_permitted_context(dir, inode)
)
- return
-EPERM
;
+ err = fscrypt_prepare_link(old_dentry, dir, dentry);
+
if (err
)
+ return
err
;
if (is_inode_flag_set(dir, FI_PROJ_INHERIT) &&
(!projid_eq(F2FS_I(dir)->i_projid,