diff options
| author | Liu Bo <[email protected]> | 2018-01-31 17:09:13 -0700 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-03-26 15:09:39 +0200 |
| commit | 5811375325420052fcadd944792a416a43072b7f (patch) | |
| tree | 67017d6e8f050378c5de9612d51c6ffe65d74d1a /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 9678c54388b6a6b309ff7ee5c8d23fa9eba7c06f (diff) | |
Btrfs: fix unexpected cow in run_delalloc_nocow
Fstests generic/475 provides a way to fail metadata reads while
checking if checksum exists for the inode inside run_delalloc_nocow(),
and csum_exist_in_range() interprets error (-EIO) as inode having
checksum and makes its caller enter the cow path.
In case of free space inode, this ends up with a warning in
cow_file_range().
The same problem applies to btrfs_cross_ref_exist() since it may also
read metadata in between.
With this, run_delalloc_nocow() bails out when errors occur at the two
places.
cc: <[email protected]> v2.6.28+
Fixes: 17d217fe970d ("Btrfs: fix nodatasum handling in balancing code")
Signed-off-by: Liu Bo <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions