[PATCH 1/2] libceph: use alloc_page() in ceph_alloc_page_vector()

From: Tal Zussman

Date: Sun Sep 13 2026 - 20:04:27 EST


ceph_alloc_page_vector() allocates its pages with __page_cache_alloc().
However, the pages are never inserted into an address_space and do not
need the cpuset memory spread policy __page_cache_alloc() provides. Use
alloc_page() instead.

Signed-off-by: Tal Zussman <tz2294@xxxxxxxxxxxx>
---
net/ceph/pagevec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ceph/pagevec.c b/net/ceph/pagevec.c
index a6aa5b3b7a1e..885e58c2d129 100644
--- a/net/ceph/pagevec.c
+++ b/net/ceph/pagevec.c
@@ -32,7 +32,7 @@ struct page **ceph_alloc_page_vector(int num_pages, gfp_t flags)
if (!pages)
return ERR_PTR(-ENOMEM);
for (i = 0; i < num_pages; i++) {
- pages[i] = __page_cache_alloc(flags);
+ pages[i] = alloc_page(flags);
if (pages[i] == NULL) {
ceph_release_page_vector(pages, i);
return ERR_PTR(-ENOMEM);

--
2.39.5