Re: [PATCH 4/7] xfs: zap broken inode forks

Christoph Hellwig
2023-12-04T04:39:58Z

On Thu, Nov 30, 2023 at 01:08:58PM -0800, Darrick J. Wong wrote:
> So I think we can grab the inode in the same transaction as the inode
> core repairs. Nobody else should even be able to see that inode, so it
> should be safe to grab i_rwsem before committing the transaction. Even
> if I have to use trylock in a loop to make lockdep happy.

Hmm, I though more of an inode flag that makes access to the inode
outside of the scrubbe return -EIO. I can also warm up to the idea of
having all inodes that are broken in some way in lost+found..