]> asedeno.scripts.mit.edu Git - linux.git/commit
ext4: add ext4_should_use_dax()
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Thu, 12 Oct 2017 16:00:59 +0000 (12:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 12 Oct 2017 16:00:59 +0000 (12:00 -0400)
commit6642586b3e5f9e0b559d20352d8d42ad84224d1f
tree215de3257712900bb4dd31c14c2da31d044f0507
parent7d3e06a8dae893a0df2777543980dc62eff61b59
ext4: add ext4_should_use_dax()

This helper, in the spirit of ext4_should_dioread_nolock() et al., replaces
the complex conditional in ext4_set_inode_flags().

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/ext4/inode.c