diff options
| author | Jan Kara <[email protected]> | 2017-11-01 15:36:45 +0000 |
|---|---|---|
| committer | Dan Williams <[email protected]> | 2017-11-03 13:26:26 +0000 |
| commit | b8a6176c214cf9aa2679131ed7e4515cddaadc33 (patch) | |
| tree | e9b6ff2b1ee0459854e64f3195a7af7571b62196 /lib/dma-debug.c | |
| parent | ext4: Simplify error handling in ext4_dax_huge_fault() (diff) | |
| download | kernel-b8a6176c214cf9aa2679131ed7e4515cddaadc33.tar.gz kernel-b8a6176c214cf9aa2679131ed7e4515cddaadc33.zip | |
ext4: Support for synchronous DAX faults
We return IOMAP_F_DIRTY flag from ext4_iomap_begin() when asked to
prepare blocks for writing and the inode has some uncommitted metadata
changes. In the fault handler ext4_dax_fault() we then detect this case
(through VM_FAULT_NEEDDSYNC return value) and call helper
dax_finish_sync_fault() to flush metadata changes and insert page table
entry. Note that this will also dirty corresponding radix tree entry
which is what we want - fsync(2) will still provide data integrity
guarantees for applications not using userspace flushing. And
applications using userspace flushing can avoid calling fsync(2) and
thus avoid the performance overhead.
Reviewed-by: Ross Zwisler <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions
