diff options
| author | Nikolay Borisov <nborisov@suse.com> | 2019-01-03 11:50:01 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2019-02-25 16:13:19 +0300 |
| commit | bd4691a0e866e774c9690f09fec573e845495f91 (patch) | |
| tree | 4f4179bb92f11f58a073f8695cc49d8266b90917 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 62b37622718c87db3d992fe03b25f6f3b18264f1 (diff) | |
| download | linux-bd4691a0e866e774c9690f09fec573e845495f91.tar.xz | |
btrfs: Use ihold instead of igrab in cow_file_range_async
ihold is supposed to be used when the caller already has a reference to
the inode. In the case of cow_file_range_async this invariants holds,
since the 3 call chains leading to this function all take a reference:
btrfs_writepage <--- does igrab
extent_write_full_page
__extent_writepage
writepage_delalloc
btrfs_run_delalloc_range
cow_file_range_async
extent_write_cache_pages <--- does igrab
__extent_writepage (same callchain as above)
and
submit_compressed_extents <-- already called from async CoW submit path,
which would have done ihold.
extent_write_locked_range
__extent_writepage
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ add comment ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
