summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorTal Zussman <tz2294@columbia.edu>2026-09-07 16:20:01 -0400
committerDavid Sterba <dsterba@suse.com>2026-10-12 19:16:21 +0200
commitcf7ded644ed72747748b62dd7eda7e67c2d1b547 (patch)
tree1237c7164cab07ea067b57765b376fa17130effb /tools/perf/scripts/python/stackcollapse.py
parentdcfc00dc024347775d52101c2c3c4501bde486c7 (diff)
downloadlinux-cf7ded644ed72747748b62dd7eda7e67c2d1b547.tar.gz
linux-cf7ded644ed72747748b62dd7eda7e67c2d1b547.zip
btrfs: use folios for reading super blocks from the block device
btrfs_read_disk_super() and the zoned super block log comparison go through read_cache_page_gfp() and page_address(), and btrfs_release_disk_super() recovers the page with virt_to_page(). Use mapping_read_folio_gfp(), folio_address(), and virt_to_folio() instead. This removes the last callers of read_cache_page_gfp() and put_page() in btrfs. Compute the super block address with offset_in_folio() as write_dev_supers() does, rather than assuming it is at the start of the page. Assisted-by: Claude:claude-fable-5-1 Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Tal Zussman <tz2294@columbia.edu> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions