Re: [PATCH] ubifs: Fix inode leak in xattr code

From: Artem Bityutskiy
Date: Mon May 15 2017 - 10:54:03 EST


On Mon, 2017-05-15 at 16:20 +0200, Richard Weinberger wrote:
> To solve this problem, set i_nlink for all xattr inodes to 0, such
> that
> the iput() in the UBIFS xattr code makes the temporary inode vanish
> immediately.

What if there is iget right after iput? With this patch, will we need
to go all the way to the slow media instead of just getting having the
inode from the inode cache?