]> git.baikalelectronics.ru Git - kernel.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)
commited1eb7b59a0c5510f475092756e8ccb0d3d8af47
tree215de3257712900bb4dd31c14c2da31d044f0507
parent0d8ad083bb89a2517cbbb9e95b9096ddc0c72a6a
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