Эх сурвалжийг харах

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>
Jaegeuk Kim 8 жил өмнө
parent
commit
204b4ae067
1 өөрчлөгдсөн 0 нэмэгдсэн , 1 устгасан
  1. 0 1
      fs/f2fs/super.c

+ 0 - 1
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);
 		}