summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorYang Xiuwei <yangxiuwei@kylinos.cn>2026-03-04 12:51:19 +0800
committerJens Axboe <axboe@kernel.dk>2026-03-04 06:59:26 -0700
commit8da8df43124128e0478beadb58faa9cab56a3f13 (patch)
tree25fbea30a09e9ec13e4957cee3c6da1a24c21f95 /tools/perf/scripts/python/flamegraph.py
parent539d1b47e935e8384977dd7e5cec370c08b7a644 (diff)
downloadlinux-8da8df43124128e0478beadb58faa9cab56a3f13.tar.gz
linux-8da8df43124128e0478beadb58faa9cab56a3f13.zip
block: use __bio_add_page in bio_copy_kern
Since the bio is allocated with the exact number of pages needed via blk_rq_map_bio_alloc(), and the loop iterates exactly that many times, bio_add_page() cannot fail due to insufficient space. Switch to __bio_add_page() and remove the dead error handling code. Suggested-by: Christoph Hellwig <hch@infradead.org> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions