From: Jaegeuk Kim Date: Sat, 7 Oct 2017 07:08:05 +0000 (-0700) Subject: f2fs/crypto: drop crypto key at evict_inode only X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0dbf4fd41748972447f03698456a02668a566b65;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git f2fs/crypto: drop crypto key at evict_inode only This patch avoids dropping crypto key in f2fs_drop_inode, so we can guarantee it happens only at evict_inode. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 3a47b3271d0d..dce5c4e48e23 100644 --- 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); }