Whamcloud - gitweb
LU-17081 build: Prefer folio_batch to pagevec 59/52259/21
authorShaun Tancheff <shaun.tancheff@hpe.com>
Tue, 5 Mar 2024 03:15:54 +0000 (10:15 +0700)
committerJian Yu <yujian@whamcloud.com>
Wed, 6 Mar 2024 16:44:30 +0000 (16:44 +0000)
commit81c567481b7be1d9d4655a47027918f7a8d16ff8
treee2bb6c2120220c3f64e82d7f71856c7811c8a169
parentf45a0288b00597bc797963f7aa01cae5167b024e
LU-17081 build: Prefer folio_batch to pagevec

Linux commit v5.16-rc4-36-g10331795fb79
  pagevec: Add folio_batch

Linux commit v6.2-rc4-254-g811561288397
  mm: pagevec: add folio_batch_reinit()

Linux commit v6.4-rc4-438-g1e0877d58b1e
  mm: remove struct pagevec

Use folio_batch and provide wrappers for older kernels to use
pagevec handling, conditionally provide a folio_batch_reinit

Add macros to ease adding pages to folio_batch(es) as well
as unwinding batches of struct folio where struct page is
needed.

HPE-bug-id: LUS-11811
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: Ie70e4851df00a73f194aaa6631678b54b5d128a1
lustre/autoconf/lustre-core.m4
lustre/include/cl_object.h
lustre/include/lustre_compat.h
lustre/include/lustre_osc.h
lustre/llite/vvp_io.c
lustre/obdclass/cl_page.c
lustre/osc/osc_cache.c
lustre/osc/osc_io.c
lustre/osc/osc_page.c
lustre/osd-ldiskfs/osd_io.c