From 516b07ee26915ba7f96d6cfe496f7f3735978027 Mon Sep 17 00:00:00 2001 From: Tal Zussman Date: Sun, 13 Sep 2026 20:03:06 -0400 Subject: [PATCH] ceph: use alloc_page() in fill_fscrypt_truncate() fill_fscrypt_truncate() allocates a scratch page with __page_cache_alloc(). The page never enters the page cache and is freed with __free_pages(). It does not need the cpuset memory spread policy that __page_cache_alloc() applies, so use alloc_page() instead. Assisted-by: Cursor Signed-off-by: Tal Zussman Reviewed-by: Alex Markuze Signed-off-by: Ilya Dryomov --- fs/ceph/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index a2bc650b237a..e17e01a2c623 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -2544,7 +2544,7 @@ static int fill_fscrypt_truncate(struct inode *inode, goto out; } - page = __page_cache_alloc(GFP_KERNEL); + page = alloc_page(GFP_KERNEL); if (page == NULL) { ret = -ENOMEM; goto out;