]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
f2fs: clean up w/ fscrypt_is_bounce_page()
authorChao Yu <chao@kernel.org>
Mon, 14 Apr 2025 10:52:36 +0000 (18:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:04:03 +0000 (11:04 +0100)
[ Upstream commit 0c708e35cf26449ca317fcbfc274704660b6d269 ]

Just cleanup, no logic changes.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/data.c

index 1b764f70b70ed1d0d1070585658126b9779db710..9eb20211619d33c9f207bc2fdeda87aef397c60f 100644 (file)
@@ -77,7 +77,7 @@ static bool __is_cp_guaranteed(struct page *page)
        struct inode *inode;
        struct f2fs_sb_info *sbi;
 
-       if (!mapping)
+       if (fscrypt_is_bounce_page(page))
                return false;
 
        if (f2fs_is_compressed_page(page))