[PATCH v2 0/9] Convert several functions in page_io.c to use a folio

Peng Zhang posted 9 patches 2 years, 6 months ago
There is a newer version of this series
Documentation/block/biovecs.rst  |  2 +-
drivers/block/drbd/drbd_bitmap.c |  2 +-
fs/f2fs/data.c                   |  2 +-
include/linux/bio.h              |  4 +--
kernel/power/swap.c              |  2 +-
mm/page_io.c                     | 55 +++++++++++++++-----------------
6 files changed, 32 insertions(+), 35 deletions(-)
[PATCH v2 0/9] Convert several functions in page_io.c to use a folio
Posted by Peng Zhang 2 years, 6 months ago
From: ZhangPeng <zhangpeng362@huawei.com>

This patch series converts several functions in page_io.c to use a
folio, which can remove several implicit calls to compound_head().

Changelog:

v2:
- remove unneeded ClearPageUptodate() and SetPageError(), suggested by
  Matthew Wilcox
- convert bio_first_page_all() to bio_first_folio_all(), suggested by
  Matthew Wilcox
- convert PageTransHuge to folio_test_pmd_mappable per Matthew Wilcox

ZhangPeng (9):
  mm/page_io: remove unneeded ClearPageUptodate()
  mm/page_io: remove unneeded SetPageError()
  mm/page_io: convert bio_first_page_all() to bio_first_folio_all()
  mm/page_io: use a folio in __end_swap_bio_read()
  mm/page_io: use a folio in sio_read_complete()
  mm/page_io: use a folio in swap_writepage_bdev_sync()
  mm/page_io: use a folio in swap_writepage_bdev_async()
  mm/page_io: convert count_swpout_vm_event() to take in a folio
  mm/page_io: convert bio_associate_blkg_from_page() to take in a folio

 Documentation/block/biovecs.rst  |  2 +-
 drivers/block/drbd/drbd_bitmap.c |  2 +-
 fs/f2fs/data.c                   |  2 +-
 include/linux/bio.h              |  4 +--
 kernel/power/swap.c              |  2 +-
 mm/page_io.c                     | 55 +++++++++++++++-----------------
 6 files changed, 32 insertions(+), 35 deletions(-)

-- 
2.25.1