]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
f2fs: remove unneeded f2fs_is_compressed_page()
authorChao Yu <chao@kernel.org>
Mon, 15 Jun 2026 13:08:22 +0000 (21:08 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 22 Jun 2026 19:52:38 +0000 (19:52 +0000)
We have checked f2fs_is_compressed_page() before f2fs_compress_write_end_io(),
so we don't need to check the status again, remove it.

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

index 6e1c0ea9f6c9eb05adcf3d51b956f1945987891d..91855d91bbdd461e9cd8773f76e9d84e4ea5f883 100644 (file)
@@ -1487,8 +1487,7 @@ void f2fs_compress_write_end_io(struct bio *bio, struct folio *folio)
        struct page *page = &folio->page;
        struct f2fs_sb_info *sbi = bio->bi_private;
        struct compress_io_ctx *cic = folio->private;
-       enum count_type type = WB_DATA_TYPE(folio,
-                               f2fs_is_compressed_page(folio));
+       enum count_type type = WB_DATA_TYPE(folio, true);
        int i;
 
        if (unlikely(bio->bi_status != BLK_STS_OK))