* [PATCH] ceph: use fscrypt_finalize_bounce_page() for cleanup
@ 2026-06-16 11:05 Chao Yu
0 siblings, 0 replies; only message in thread
From: Chao Yu @ 2026-06-16 11:05 UTC (permalink / raw)
To: ceph-devel; +Cc: linux-kernel, Chao Yu, Matthew Wilcox, Eric Biggers
Use fscrypt_finalize_bounce_page() to simplify open code, no
functional changes.
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Chao Yu <chao@kernel.org>
---
fs/ceph/addr.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index 1454760332ff..5c7099ba0f59 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -932,12 +932,8 @@ static void writepages_finish(struct ceph_osd_request *req)
(u64)osd_data->length);
total_pages += num_pages;
for (j = 0; j < num_pages; j++) {
+ fscrypt_finalize_bounce_page(&osd_data->pages[j]);
page = osd_data->pages[j];
- if (fscrypt_is_bounce_page(page)) {
- page = fscrypt_pagecache_page(page);
- fscrypt_free_bounce_page(osd_data->pages[j]);
- osd_data->pages[j] = page;
- }
BUG_ON(!page);
WARN_ON(!PageUptodate(page));
--
2.49.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-16 11:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-16 11:05 [PATCH] ceph: use fscrypt_finalize_bounce_page() for cleanup Chao Yu
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®