diff options
author | Kundan Kumar <[email protected]> | 2024-09-11 12:19:33 +0530 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-09-11 07:24:01 -0600 |
commit | ed9832bc08db29874600eb066b74918fe6fc2060 (patch) | |
tree | fbbdba912d65ccaa3e5ab9fa90d2d21c28fba4d9 /lib/netdev-notifier-error-inject.c | |
parent | 7de98954687fe152c5f38afd719b3fdf9f34020a (diff) |
block: introduce folio awareness and add a bigger size from folio
Add a bigger size from folio to bio and skip merge processing for pages.
Fetch the offset of page within a folio. Depending on the size of folio
and folio_offset, fetch a larger length. This length may consist of
multiple contiguous pages if folio is multiorder.
Using the length calculate number of pages which will be added to bio and
increment the loop counter to skip those pages.
This technique helps to avoid overhead of merging pages which belong to
same large order folio.
Also folio-ize the functions bio_iov_add_page() and
bio_iov_add_zone_append_page()
Signed-off-by: Kundan Kumar <[email protected]>
Tested-by: Luis Chamberlain <[email protected]>
Reviewed-by: Christoph Hellwig <[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 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions