diff options
| author | Dan Williams <[email protected]> | 2017-11-14 00:38:44 +0000 |
|---|---|---|
| committer | Dan Williams <[email protected]> | 2017-11-14 00:38:44 +0000 |
| commit | aaa422c4c3f6ee958ea9d6c9260ac40f90a3f4e9 (patch) | |
| tree | 64ce62bb891f903a5c504a2700823cbd60bb877c /lib/dma-debug.c | |
| parent | xfs: support for synchronous DAX faults (diff) | |
| download | kernel-aaa422c4c3f6ee958ea9d6c9260ac40f90a3f4e9.tar.gz kernel-aaa422c4c3f6ee958ea9d6c9260ac40f90a3f4e9.zip | |
fs, dax: unify IOMAP_F_DIRTY read vs write handling policy in the dax core
While reviewing whether MAP_SYNC should strengthen its current guarantee
of syncing writes from the initiating process to also include
third-party readers observing dirty metadata, Dave pointed out that the
check of IOMAP_WRITE is misplaced.
The policy of what to with IOMAP_F_DIRTY should be separated from the
generic filesystem mechanism of reporting dirty metadata. Move this
policy to the fs-dax core to simplify the per-filesystem iomap handlers,
and further centralize code that implements the MAP_SYNC policy. This
otherwise should not change behavior, it just makes it easier to change
behavior in the future.
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Cc: Ross Zwisler <[email protected]>
Reported-by: Dave Chinner <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions
