diff options
author | Ming Lei <ming.lei@redhat.com> | 2025-03-12 17:51:36 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-03-12 23:07:11 +0300 |
commit | 26064d3e2b4d9a14df1072980e558c636fb023ea (patch) | |
tree | 44f3f322b3e879eb00b8d7e7e2a8315afbb3c6c7 /tools/perf/scripts/python/intel-pt-events.py | |
parent | 61667cb6644f6fb01eb8baa928e381c016b5ed7b (diff) | |
download | linux-26064d3e2b4d9a14df1072980e558c636fb023ea.tar.xz |
block: fix adding folio to bio
>4GB folio is possible on some ARCHs, such as aarch64, 16GB hugepage
is supported, then 'offset' of folio can't be held in 'unsigned int',
cause warning in bio_add_folio_nofail() and IO failure.
Fix it by adjusting 'page' & trimming 'offset' so that `->bi_offset` won't
be overflow, and folio can be added to bio successfully.
Fixes: ed9832bc08db ("block: introduce folio awareness and add a bigger size from folio")
Cc: Kundan Kumar <kundan.kumar@samsung.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: Gavin Shan <gshan@redhat.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lore.kernel.org/r/20250312145136.2891229-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions