ubifs, fscrypt: cache decrypted symlink target in ->i_link

Reapplied fscrypt patch in ubifs.

Fixes: 1f1be4a771 ("fscrypt: cache decrypted symlink target in ->i_link")
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim
2019-07-30 09:58:48 -07:00
parent 846bf3b84a
commit 1835402ece

View File

@@ -276,6 +276,8 @@ static void ubifs_i_callback(struct rcu_head *head)
{
struct inode *inode = container_of(head, struct inode, i_rcu);
struct ubifs_inode *ui = ubifs_inode(inode);
fscrypt_free_inode(inode);
kmem_cache_free(ubifs_inode_slab, ui);
}