summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2026-09-13 20:59:15 +0930
committerDavid Sterba <dsterba@suse.com>2026-10-12 19:16:21 +0200
commit5a593fe11e9f08bb743a13a283e71da971cbffbc (patch)
tree8fccf8bd5f4f5ded70d369621b24b4eb3b55391c /tools/perf/scripts/python/stackcollapse.py
parent7a881b1139bb34c48cddea20dae9f53b2289de78 (diff)
downloadlinux-5a593fe11e9f08bb743a13a283e71da971cbffbc.tar.gz
linux-5a593fe11e9f08bb743a13a283e71da971cbffbc.zip
btrfs: cleanup and rename submit_extent_folio()
Cleanup submit_extent_folio() by: - Remove @size parameter Since commit b2e743927fdd ("btrfs: make btrfs_do_readpage() to do block-by-block read"), all callers are passing sectorsize as @size, so there is no need for such parameter. Furthermore since we only write one block at a time, there is no need for a while() loop, nor the advance of various local variables. - Update the comments on the parameter list * @disk_bytenr is shared for both read and write * rename @page to @folio - Update the return value to return 0 or error Since we won't queue multiple blocks anyway, there is no point in returning the queued bytes. It makes more sense to return an error code, although the only error code will be -EUCLEAN for writes. - Rename submit_extent_folio() to submit_one_block() - Rename submit_one_sector() to submit_write_sector() - Update the error message to utilize the new returned error code inside submit_write_sector() Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Qu Wenruo <wqu@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