diff options
| author | Ming Lei <[email protected]> | 2025-03-12 14:51:36 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2025-03-12 20:07:11 +0000 |
| commit | 26064d3e2b4d9a14df1072980e558c636fb023ea (patch) | |
| tree | 44f3f322b3e879eb00b8d7e7e2a8315afbb3c6c7 /tools/testing/selftests/net/lib/py/utils.py | |
| parent | block: remove unused parameter (diff) | |
| download | kernel-26064d3e2b4d9a14df1072980e558c636fb023ea.tar.gz kernel-26064d3e2b4d9a14df1072980e558c636fb023ea.zip | |
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 <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Luis Chamberlain <[email protected]>
Cc: Gavin Shan <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions
