summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-10-07 09:08:05 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2017-10-26 10:44:13 +0200
commit204b4ae06739ddfe59643c44a205e739938c51e5 (patch)
tree7fc1d115b6f01a937fd37e2bf3902c72665750a5 /fs/f2fs/super.c
parentf2fs: fix to avoid race when accessing last_disk_size (diff)
downloadlinux-204b4ae06739ddfe59643c44a205e739938c51e5.tar.xz
linux-204b4ae06739ddfe59643c44a205e739938c51e5.zip
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 <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to '')
-rw-r--r--fs/f2fs/super.c1
1 files changed, 0 insertions, 1 deletions
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);
}