]> Git Repo - linux.git/commit
fs/ext4: Update ext4_should_use_dax()
authorIra Weiny <[email protected]>
Thu, 28 May 2020 14:59:58 +0000 (07:59 -0700)
committerTheodore Ts'o <[email protected]>
Fri, 29 May 2020 02:09:47 +0000 (22:09 -0400)
commita8ab6d3885ef5e2300d683b79a9e1999403eefd9
tree13098aea5ebd1840fedf2fd7845e4bcc023bd1f3
parentfc626fe322f13ecdfac58cbfa6cfea797ed22623
fs/ext4: Update ext4_should_use_dax()

S_DAX should only be enabled when the underlying block device supports
dax.

Cache the underlying support for DAX in the super block and modify
ext4_should_use_dax() to check for device support prior to the over
riding mount option.

While we are at it change the function to ext4_should_enable_dax() as
this better reflects the ask as well as matches xfs.

Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Ira Weiny <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
fs/ext4/ext4.h
fs/ext4/inode.c
fs/ext4/super.c
This page took 0.045578 seconds and 4 git commands to generate.