mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-18 00:24:58 +08:00
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>
This commit is contained in:
parent
a0d00fad35
commit
204b4ae067
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user