Re: [PATCH] fs/ntfs3: Update inode->i_mapping->a_ops on compression state change

From: Christoph Hellwig
Date: Tue Jan 28 2025 - 01:07:42 EST


On Thu, Jan 23, 2025 at 04:53:35PM +0300, Konstantin Komarov wrote:
> Update inode->i_mapping->a_ops when the compression state changes to
> ensure correct address space operations.
> Clear ATTR_FLAG_SPARSED/FILE_ATTRIBUTE_SPARSE_FILE when enabling
> compression to prevent flag conflicts.

How is this synchronized against using the address_space ops?
Most of them can be called without i_rwsem held.