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:
8c58276
)
f2fs/crypto: drop crypto key at evict_inode only
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Sat, 7 Oct 2017 07:08:05 +0000
(
00:08
-0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 19 Dec 2017 01:21:59 +0000
(17:21 -0800)
This patch avoids dropping crypto key in f2fs_drop_inode, so we can guarantee
it happens only at evict_inode.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/super.c
b/fs/f2fs/super.c
index 3a47b3271d0d810274d7d47e33f97dfb712ef535..dce5c4e48e234a5bcfed55cd23f7c3a0d40ff96e 100644
(file)
--- a/
fs/f2fs/super.c
+++ b/
fs/f2fs/super.c
@@
-673,7
+673,6
@@
static int f2fs_drop_inode(struct inode *inode)
sb_end_intwrite(inode->i_sb);
- fscrypt_put_encryption_info(inode, NULL);
spin_lock(&inode->i_lock);
atomic_dec(&inode->i_count);
}