[PATCH 1/2] f2fs: clean up w/ fscrypt_is_bounce_page()

From: Chao Yu
Date: Mon Apr 14 2025 - 06:53:37 EST


Just cleanup, no logic changes.

Signed-off-by: Chao Yu <chao@xxxxxxxxxx>
---
fs/f2fs/data.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 1a90aca499f6..4f70755c30cc 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -53,7 +53,7 @@ bool f2fs_is_cp_guaranteed(struct page *page)
struct inode *inode;
struct f2fs_sb_info *sbi;

- if (!mapping)
+ if (fscrypt_is_bounce_page(page))
return false;

inode = mapping->host;
--
2.49.0