From f97509aff5159a0d717ded384a5cdc9ed26ddc90 Mon Sep 17 00:00:00 2001 From: Tal Zussman Date: Sun, 13 Sep 2026 20:03:05 -0400 Subject: [PATCH] libceph: use alloc_page() in ceph_alloc_page_vector() 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. Assisted-by: Cursor Signed-off-by: Tal Zussman Reviewed-by: Alex Markuze Signed-off-by: Ilya Dryomov --- 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);