diff options
author | 2016-05-13 00:38:15 -0400 | |
---|---|---|
committer | 2016-05-13 00:38:15 -0400 | |
commit | aef39ab1534d1a07061e0ee7e428499e127232eb (patch) | |
tree | 9a749224ef5cf24d556f5f08bcae93714520c3c8 /tools/perf/scripts/python/stackcollapse.py | |
parent | ext4: remove unmeetable inconsisteny check from ext4_find_extent() (diff) | |
download | linux-dev-aef39ab1534d1a07061e0ee7e428499e127232eb.tar.xz linux-dev-aef39ab1534d1a07061e0ee7e428499e127232eb.zip |
dax: call get_blocks() with create == 1 for write faults to unwritten extents
Currently, __dax_fault() does not call get_blocks() callback with create
argument set, when we got back unwritten extent from the initial
get_blocks() call during a write fault. This is because originally
filesystems were supposed to convert unwritten extents to written ones
using complete_unwritten() callback. Later this was abandoned in favor of
using pre-zeroed blocks however the condition whether get_blocks() needs
to be called with create == 1 remained.
Fix the condition so that filesystems are not forced to zero-out and
convert unwritten extents when get_blocks() is called with create == 0
(which introduces unnecessary overhead for read faults and can be
problematic as the filesystem may possibly be read-only).
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions