Re: [PATCH 2/2] fs: Move swap_[de]activate to file_operations

From: Jan Kara
Date: Tue Nov 12 2019 - 08:33:52 EST


On Mon 11-11-19 16:43:20, Andrew Morton wrote:
> On Mon, 11 Nov 2019 16:34:52 -0800 ira.weiny@xxxxxxxxx wrote:
>
> > From: Ira Weiny <ira.weiny@xxxxxxxxx>
> >
> > swap_activate() and swap_deactivate() have nothing to do with
> > address spaces. We want to eventually make the address space operations
> > dynamic to switch inode flags on the fly.
>
> What does this mean?

See my reply to Christoph [1]. Ira wants to make switching inodes between
DAX and non-DAX mode work which means switching also
address_space_operations pointer in the mapping.

Honza

[1] lore.kernel.org/r/20191112133055.GI1241@xxxxxxxxxxxxxx

--
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR