Re: [PATCH 2/9] fs/ext4: Disallow verity if inode is DAX

2020-05-17 Thread Ira Weiny
On Fri, May 15, 2020 at 06:49:16PM -0700, Eric Biggers wrote: > On Tue, May 12, 2020 at 10:43:17PM -0700, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > Verity and DAX are incompatible. Changing the DAX mode due to a verity > > flag change is wrong without a corresponding

Re: [PATCH 2/9] fs/ext4: Disallow verity if inode is DAX

2020-05-15 Thread Eric Biggers
On Tue, May 12, 2020 at 10:43:17PM -0700, ira.we...@intel.com wrote: > From: Ira Weiny > > Verity and DAX are incompatible. Changing the DAX mode due to a verity > flag change is wrong without a corresponding address_space_operations > update. > > Make the 2 options mutually exclusive by

[PATCH 2/9] fs/ext4: Disallow verity if inode is DAX

2020-05-12 Thread ira . weiny
From: Ira Weiny Verity and DAX are incompatible. Changing the DAX mode due to a verity flag change is wrong without a corresponding address_space_operations update. Make the 2 options mutually exclusive by returning an error if DAX was set first. (Setting DAX is already disabled if Verity is