summaryrefslogtreecommitdiff
path: root/include/linux/folio_batch.h
diff options
context:
space:
mode:
authorTal Zussman <tz2294@columbia.edu>2026-02-25 18:44:28 -0500
committerAndrew Morton <akpm@linux-foundation.org>2026-04-05 13:53:07 -0700
commit511f04aac469a3ae04f7f2588101020aebb19c90 (patch)
tree5b96bf7ba62fdabead9ddcb906af5e5f6cd27a74 /include/linux/folio_batch.h
parent4e1d77a8f382a0ef4dd7732bb1986c8143600def (diff)
downloadlwn-511f04aac469a3ae04f7f2588101020aebb19c90.tar.gz
lwn-511f04aac469a3ae04f7f2588101020aebb19c90.zip
folio_batch: rename PAGEVEC_SIZE to FOLIO_BATCH_SIZE
struct pagevec no longer exists. Rename the macro appropriately. Link: https://lkml.kernel.org/r/20260225-pagevec_cleanup-v2-4-716868cc2d11@columbia.edu Signed-off-by: Tal Zussman <tz2294@columbia.edu> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Reviewed-by: Jan Kara <jack@suse.cz> Acked-by: Zi Yan <ziy@nvidia.com> Reviewed-by: Lorenzo Stoakes (Oracle) <ljs@kernel.org> Cc: Chris Li <chrisl@kernel.org> Cc: Christian Brauner <brauner@kernel.org> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/folio_batch.h')
-rw-r--r--include/linux/folio_batch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/folio_batch.h b/include/linux/folio_batch.h
index a2f3d3043f7e..b45946adc50b 100644
--- a/include/linux/folio_batch.h
+++ b/include/linux/folio_batch.h
@@ -12,7 +12,7 @@
#include <linux/types.h>
/* 31 pointers + header align the folio_batch structure to a power of two */
-#define PAGEVEC_SIZE 31
+#define FOLIO_BATCH_SIZE 31
struct folio;
@@ -29,7 +29,7 @@ struct folio_batch {
unsigned char nr;
unsigned char i;
bool percpu_pvec_drained;
- struct folio *folios[PAGEVEC_SIZE];
+ struct folio *folios[FOLIO_BATCH_SIZE];
};
/**
@@ -58,7 +58,7 @@ static inline unsigned int folio_batch_count(const struct folio_batch *fbatch)
static inline unsigned int folio_batch_space(const struct folio_batch *fbatch)
{
- return PAGEVEC_SIZE - fbatch->nr;
+ return FOLIO_BATCH_SIZE - fbatch->nr;
}
/**