diff options
author | Ira Weiny <[email protected]> | 2020-05-28 07:59:58 -0700 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2020-05-28 22:09:47 -0400 |
commit | a8ab6d3885ef5e2300d683b79a9e1999403eefd9 (patch) | |
tree | 13098aea5ebd1840fedf2fd7845e4bcc023bd1f3 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | fc626fe322f13ecdfac58cbfa6cfea797ed22623 (diff) |
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]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions