summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2026-01-07 14:09:09 +0000
committerDavid Sterba <dsterba@suse.com>2026-02-03 07:54:35 +0100
commit18ba649928711539dd124b4bf7682696b3f2e4a8 (patch)
tree6c4f0645c7a59f05d746d3de0de2d9c1e3fc379d /tools/perf/scripts/python/export-to-postgresql.py
parent8620da16fb6be1fd9906374fa1c763a10c6918df (diff)
downloadlinux-18ba649928711539dd124b4bf7682696b3f2e4a8.tar.gz
linux-18ba649928711539dd124b4bf7682696b3f2e4a8.zip
btrfs: redirect I/O for remapped block groups
Change btrfs_map_block() so that if the block group has the REMAPPED flag set, we call btrfs_translate_remap() to obtain a new address. btrfs_translate_remap() searches the remap tree for a range corresponding to the logical address passed to btrfs_map_block(). If it is within an identity remap, this part of the block group hasn't yet been relocated, and so we use the existing address. If it is within an actual remap, we subtract the start of the remap range and add the address of its destination, contained in the item's payload. Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Mark Harmstone <mark@harmstone.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