Skip to content

Commit 0f54eec

Browse files
Matthew Wilcox (Oracle)Jaegeuk Kim
authored andcommitted
f2fs: Use F2FS_F_SB() in f2fs_read_end_io()
Get the folio from the bio instead of the page. Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 015622b commit 0f54eec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static void f2fs_post_read_work(struct work_struct *work)
278278

279279
static void f2fs_read_end_io(struct bio *bio)
280280
{
281-
struct f2fs_sb_info *sbi = F2FS_P_SB(bio_first_page_all(bio));
281+
struct f2fs_sb_info *sbi = F2FS_F_SB(bio_first_folio_all(bio));
282282
struct bio_post_read_ctx *ctx;
283283
bool intask = in_task();
284284

0 commit comments

Comments
 (0)