mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] fscrypt: remove fscrypt_is_bounce_page() and fscrypt_pagecache_page()
@ 2026-11-01 20:16 Tal Zussman
  2026-11-01 20:16 ` [PATCH 1/2] fscrypt: remove fscrypt_pagecache_page() Tal Zussman
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tal Zussman @ 2026-11-01 20:16 UTC (permalink / raw)
  To: Eric Biggers, Theodore Y. Ts'o, Jaegeuk Kim
  Cc: Matthew Wilcox (Oracle), linux-fscrypt, linux-kernel, Tal Zussman

Commit ef9024b5fca2 ("ceph: remove ceph_fscrypt_pagecache_page() and
ceph_fscrypt_page_offset()") removed the last callers of these two
helpers as part of ceph folio conversions. Remove them.

---
Tal Zussman (2):
      fscrypt: remove fscrypt_pagecache_page()
      fscrypt: remove fscrypt_is_bounce_page()

 include/linux/fscrypt.h | 21 ---------------------
 1 file changed, 21 deletions(-)
---
base-commit: 46fec1c3029b552ec63b2d01af9d43a386f043ea
change-id: 20261101-fscrypt-page-helpers-1b2abcb14657

Best regards,
--  
Tal Zussman <tz2294@columbia.edu>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] fscrypt: remove fscrypt_pagecache_page()
  2026-11-01 20:16 [PATCH 0/2] fscrypt: remove fscrypt_is_bounce_page() and fscrypt_pagecache_page() Tal Zussman
@ 2026-11-01 20:16 ` Tal Zussman
  2026-11-01 20:16 ` [PATCH 2/2] fscrypt: remove fscrypt_is_bounce_page() Tal Zussman
  2026-11-05  0:19 ` [PATCH 0/2] fscrypt: remove fscrypt_is_bounce_page() and fscrypt_pagecache_page() Eric Biggers
  2 siblings, 0 replies; 4+ messages in thread
From: Tal Zussman @ 2026-11-01 20:16 UTC (permalink / raw)
  To: Eric Biggers, Theodore Y. Ts'o, Jaegeuk Kim
  Cc: Matthew Wilcox (Oracle), linux-fscrypt, linux-kernel, Tal Zussman

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

Signed-off-by: Tal Zussman <tz2294@columbia.edu>
---
 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] fscrypt: remove fscrypt_is_bounce_page()
  2026-11-01 20:16 [PATCH 0/2] fscrypt: remove fscrypt_is_bounce_page() and fscrypt_pagecache_page() Tal Zussman
  2026-11-01 20:16 ` [PATCH 1/2] fscrypt: remove fscrypt_pagecache_page() Tal Zussman
@ 2026-11-01 20:16 ` Tal Zussman
  2026-11-05  0:19 ` [PATCH 0/2] fscrypt: remove fscrypt_is_bounce_page() and fscrypt_pagecache_page() Eric Biggers
  2 siblings, 0 replies; 4+ messages in thread
From: Tal Zussman @ 2026-11-01 20:16 UTC (permalink / raw)
  To: Eric Biggers, Theodore Y. Ts'o, Jaegeuk Kim
  Cc: Matthew Wilcox (Oracle), linux-fscrypt, linux-kernel, Tal Zussman

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@columbia.edu>
---
 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] fscrypt: remove fscrypt_is_bounce_page() and fscrypt_pagecache_page()
  2026-11-01 20:16 [PATCH 0/2] fscrypt: remove fscrypt_is_bounce_page() and fscrypt_pagecache_page() Tal Zussman
  2026-11-01 20:16 ` [PATCH 1/2] fscrypt: remove fscrypt_pagecache_page() Tal Zussman
  2026-11-01 20:16 ` [PATCH 2/2] fscrypt: remove fscrypt_is_bounce_page() Tal Zussman
@ 2026-11-05  0:19 ` Eric Biggers
  2 siblings, 0 replies; 4+ messages in thread
From: Eric Biggers @ 2026-11-05  0:19 UTC (permalink / raw)
  To: Tal Zussman
  Cc: Theodore Y. Ts'o, Jaegeuk Kim, Matthew Wilcox (Oracle),
	linux-fscrypt, linux-kernel

On Sun, Nov 01, 2026 at 03:16:12PM -0500, Tal Zussman wrote:
> Commit ef9024b5fca2 ("ceph: remove ceph_fscrypt_pagecache_page() and
> ceph_fscrypt_page_offset()") removed the last callers of these two
> helpers as part of ceph folio conversions. Remove them.
> 
> ---
> Tal Zussman (2):
>       fscrypt: remove fscrypt_pagecache_page()
>       fscrypt: remove fscrypt_is_bounce_page()
> 
>  include/linux/fscrypt.h | 21 ---------------------
>  1 file changed, 21 deletions(-)
> ---
> base-commit: 46fec1c3029b552ec63b2d01af9d43a386f043ea
> change-id: 20261101-fscrypt-page-helpers-1b2abcb14657

Applied to https://git.kernel.org/pub/scm/fs/fscrypt/linux.git/log/?h=for-next

Thanks!

- Eric

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-05  0:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-01 20:16 [PATCH 0/2] fscrypt: remove fscrypt_is_bounce_page() and fscrypt_pagecache_page() Tal Zussman
2026-11-01 20:16 ` [PATCH 1/2] fscrypt: remove fscrypt_pagecache_page() Tal Zussman
2026-11-01 20:16 ` [PATCH 2/2] fscrypt: remove fscrypt_is_bounce_page() Tal Zussman
2026-11-05  0:19 ` [PATCH 0/2] fscrypt: remove fscrypt_is_bounce_page() and fscrypt_pagecache_page() Eric Biggers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®