[PATCH 1/2] fscrypt: remove fscrypt_pagecache_page()

From: Tal Zussman

Date: Sun Nov 01 2026 - 15:16:45 EST


fscrypt_pagecache_page() no longer has any callers, so remove it. This
removes a use of page_private().

Signed-off-by: Tal Zussman <tz2294@xxxxxxxxxxxx>
---
include/linux/fscrypt.h | 11 -----------
1 file changed, 11 deletions(-)

diff --git a/include/linux/fscrypt.h b/include/linux/fscrypt.h
index 28f2108e29f3..e70f630fab0c 100644
--- a/include/linux/fscrypt.h
+++ b/include/linux/fscrypt.h
@@ -361,11 +361,6 @@ static inline bool fscrypt_is_bounce_page(struct page *page)
return page->mapping == NULL;
}

-static inline struct page *fscrypt_pagecache_page(struct page *bounce_page)
-{
- return (struct page *)page_private(bounce_page);
-}
-
static inline bool fscrypt_is_bounce_folio(const struct folio *folio)
{
return folio->mapping == NULL;
@@ -532,12 +527,6 @@ static inline bool fscrypt_is_bounce_page(struct page *page)
return false;
}

-static inline struct page *fscrypt_pagecache_page(struct page *bounce_page)
-{
- WARN_ON_ONCE(1);
- return ERR_PTR(-EINVAL);
-}
-
static inline bool fscrypt_is_bounce_folio(const struct folio *folio)
{
return false;

--
2.39.5