fs/ext4: Narrow scope of DAX check in setflags
authorIra Weiny <ira.weiny@intel.com>
Thu, 28 May 2020 14:59:55 +0000 (07:59 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 29 May 2020 02:09:46 +0000 (22:09 -0400)
commitff694ab60c29cfeba81b3d5068d3c908f22110ed
treea0e65ca2f414496337ade702cfbf813e86838602
parent2c567af418e3f9380c2051aada58b4e5a4b5c2ad
fs/ext4: Narrow scope of DAX check in setflags

When preventing DAX and journaling on an inode.  Use the effective DAX
check rather than the mount option.

This will be required to support per inode DAX flags.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20200528150003.828793-2-ira.weiny@intel.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ioctl.c