Repository navigation
Commit a8ab6d3
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 <jack@suse.cz>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20200528150003.828793-5-ira.weiny@intel.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent fc626fe commit a8ab6d3
3 files changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1979 | 1979 | | |
1980 | 1980 | | |
1981 | 1981 | | |
| 1982 | + | |
1982 | 1983 | | |
1983 | 1984 | | |
1984 | 1985 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4398 | 4398 | | |
4399 | 4399 | | |
4400 | 4400 | | |
4401 | | - | |
| 4401 | + | |
4402 | 4402 | | |
4403 | | - | |
4404 | | - | |
| 4403 | + | |
| 4404 | + | |
4405 | 4405 | | |
4406 | 4406 | | |
4407 | 4407 | | |
| |||
4412 | 4412 | | |
4413 | 4413 | | |
4414 | 4414 | | |
4415 | | - | |
| 4415 | + | |
| 4416 | + | |
| 4417 | + | |
| 4418 | + | |
| 4419 | + | |
| 4420 | + | |
4416 | 4421 | | |
4417 | 4422 | | |
4418 | 4423 | | |
| |||
4430 | 4435 | | |
4431 | 4436 | | |
4432 | 4437 | | |
4433 | | - | |
| 4438 | + | |
4434 | 4439 | | |
4435 | 4440 | | |
4436 | 4441 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4092 | 4092 | | |
4093 | 4093 | | |
4094 | 4094 | | |
| 4095 | + | |
| 4096 | + | |
| 4097 | + | |
4095 | 4098 | | |
4096 | 4099 | | |
4097 | 4100 | | |
4098 | 4101 | | |
4099 | 4102 | | |
4100 | 4103 | | |
4101 | | - | |
| 4104 | + | |
4102 | 4105 | | |
4103 | 4106 | | |
4104 | 4107 | | |
| |||
0 commit comments