Re: [PATCH 8/9] fs/ext4: Introduce DAX inode flag

From: Jan Kara
Date: Thu May 14 2020 - 02:43:40 EST


On Wed 13-05-20 14:41:55, Ira Weiny wrote:
> On Wed, May 13, 2020 at 04:47:06PM +0200, Jan Kara wrote:
> >
> > So I think you'll have to check
> > whether DAX flag is being changed,
>
> ext4_dax_dontcache() does check if the flag is being changed.

Yes, but if you call it after inode flags change, you cannot determine that
just from flags and EXT4_I(inode)->i_flags. So that logic needs to change.

Honza

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