[PATCH 2/2] fscrypt: remove fscrypt_is_bounce_page()

From: Tal Zussman

Date: Sun Nov 01 2026 - 15:17:04 EST


fscrypt_is_bounce_page() no longer has any callers, so remove it. This
removes a use of page->mapping.

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

diff --git a/include/linux/fscrypt.h b/include/linux/fscrypt.h
index e70f630fab0c..3a238bebbdf1 100644
--- a/include/linux/fscrypt.h
+++ b/include/linux/fscrypt.h
@@ -356,11 +356,6 @@ int fscrypt_decrypt_block_inplace(const struct inode *inode, struct page *page,
unsigned int len, unsigned int offs,
u64 lblk_num);

-static inline bool fscrypt_is_bounce_page(struct page *page)
-{
- return page->mapping == NULL;
-}
-
static inline bool fscrypt_is_bounce_folio(const struct folio *folio)
{
return folio->mapping == NULL;
@@ -522,11 +517,6 @@ static inline int fscrypt_decrypt_block_inplace(const struct inode *inode,
return -EOPNOTSUPP;
}

-static inline bool fscrypt_is_bounce_page(struct page *page)
-{
- return false;
-}
-
static inline bool fscrypt_is_bounce_folio(const struct folio *folio)
{
return false;

--
2.39.5