aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2020-06-10 09:04:42 +0800
committerDavid Sterba <dsterba@suse.com>2020-07-27 12:55:24 +0200
commita7f8b1c2ac21bf081b41264c9cfd6260dffa6246 (patch)
tree19cf7daae27083969919c8d7820d5a52e13b1fdc /tools/perf/scripts/python/syscall-counts.py
parentbtrfs: inode: move qgroup reserved space release to the callers of insert_res... (diff)
downloadlinux-a7f8b1c2ac21bf081b41264c9cfd6260dffa6246.tar.gz
linux-a7f8b1c2ac21bf081b41264c9cfd6260dffa6246.zip
btrfs: file: reserve qgroup space after the hole punch range is locked
The incoming qgroup reserved space timing will move the data reservation to ordered extent completely. However in btrfs_punch_hole_lock_range() will call btrfs_invalidate_page(), which will clear QGROUP_RESERVED bit for the range. In current stage it's OK, but if we're making ordered extents handle the reserved space, then btrfs_punch_hole_lock_range() can clear the QGROUP_RESERVED bit before we submit ordered extent, leading to qgroup reserved space leakage. So here change the timing to make reserve data space after btrfs_punch_hole_lock_range(). The new timing is fine for either current code or the new code. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions