summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2025-04-14 18:52:36 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-19 15:39:47 +0200
commitd93198513eada13158d1498aa9f8d0627490c49b (patch)
tree639aa5e97be0547e92f855ef060f25655c37b09f
parentf1e573d7dafd9cc03b7fb8988f841716fecc8bb9 (diff)
f2fs: clean up w/ fscrypt_is_bounce_page()
[ Upstream commit 0c708e35cf26449ca317fcbfc274704660b6d269 ] Just cleanup, no logic changes. Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Stable-dep-of: aa1be8dd6416 ("f2fs: fix to detect gcing page in f2fs_is_cp_guaranteed()") Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--fs/f2fs/data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 54f89f0ee69b..5a7888a5923c 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;