]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
f2fs: Use F2FS_F_SB() in f2fs_read_end_io()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 8 Jul 2025 17:03:52 +0000 (18:03 +0100)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 22 Jul 2025 15:57:57 +0000 (15:57 +0000)
Get the folio from the bio instead of the page.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c

index 1bb4b0c87e36cf2699c83b5a236d4e3eecf5fa2e..f1cbbea56a17c7d1baa455f0a1380a01f343ff02 100644 (file)
@@ -278,7 +278,7 @@ static void f2fs_post_read_work(struct work_struct *work)
 
 static void f2fs_read_end_io(struct bio *bio)
 {
-       struct f2fs_sb_info *sbi = F2FS_P_SB(bio_first_page_all(bio));
+       struct f2fs_sb_info *sbi = F2FS_F_SB(bio_first_folio_all(bio));
        struct bio_post_read_ctx *ctx;
        bool intask = in_task();