diff options
author | 2017-06-06 16:45:28 -0700 | |
---|---|---|
committer | 2017-06-29 20:17:01 +0200 | |
commit | 4da8b76d347bcae951f89522a040c36d9fc9f3b3 (patch) | |
tree | 70066403556ef53330984ebc5f8877f309e621fc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Btrfs: make BUG_ON() in add_pinned_bytes() an ASSERT() (diff) | |
download | wireguard-linux-4da8b76d347bcae951f89522a040c36d9fc9f3b3.tar.xz wireguard-linux-4da8b76d347bcae951f89522a040c36d9fc9f3b3.zip |
Btrfs: update total_bytes_pinned when pinning down extents
The extents marked in pin_down_extent() will be unpinned later in
unpin_extent_range(), which decrements total_bytes_pinned.
pin_down_extent() must increment the counter to avoid underflowing it.
Also adjust btrfs_free_tree_block() to avoid accounting for the same
extent twice.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions