Skip to contentSkip to conversation

f2fs/crypto: drop crypto key at evict_inode only

PATCH In review Jaegeuk Kim 2 participants 2 messages Oct 10, 2017 – Oct 11, 2017

Subsystems (2)
lore
Share & tools
lore

Jaegeuk Kim

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 fs/f2fs/super.c | 1 -
 1 file changed, 1 deletion(-)
fs/f2fs/super.c +0 -1
index dc05b16df514..f10a1b1380c2 100644
@@ -717,7 +717,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);
 		}
Signature · 1 line
2.14.0.rc1.383.gd1ce394fe2-goog
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Jaegeuk Kim

This patch avoids dropping crypto key in f2fs_drop_inode, so we can guarantee it happens only at evict_inode.

Thanks,

Quoted 17 lines
---
 fs/f2fs/super.c | 1 -
 1 file changed, 1 deletion(-)
fs/f2fs/super.c +0 -1
index dc05b16df514..f10a1b1380c2 100644
@@ -717,7 +717,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);
 		}