mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 03:27:30 -04:00
f2fs: Split f2fs_write_end_io()
Prepare for running most of the write completion work asynchronously. Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
committed by
Jaegeuk Kim
parent
7ba36a9ea8
commit
bdc7cfd780
@@ -350,14 +350,11 @@ static void f2fs_read_end_io(struct bio *bio)
|
||||
f2fs_verify_and_finish_bio(bio, intask);
|
||||
}
|
||||
|
||||
static void f2fs_write_end_io(struct bio *bio)
|
||||
static void f2fs_write_end_bio(struct bio *bio)
|
||||
{
|
||||
struct f2fs_sb_info *sbi;
|
||||
struct f2fs_sb_info *sbi = bio->bi_private;
|
||||
struct folio_iter fi;
|
||||
|
||||
iostat_update_and_unbind_ctx(bio);
|
||||
sbi = bio->bi_private;
|
||||
|
||||
if (time_to_inject(sbi, FAULT_WRITE_IO))
|
||||
bio->bi_status = BLK_STS_IOERR;
|
||||
|
||||
@@ -414,6 +411,13 @@ static void f2fs_write_end_io(struct bio *bio)
|
||||
bio_put(bio);
|
||||
}
|
||||
|
||||
static void f2fs_write_end_io(struct bio *bio)
|
||||
{
|
||||
iostat_update_and_unbind_ctx(bio);
|
||||
|
||||
f2fs_write_end_bio(bio);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_BLK_DEV_ZONED
|
||||
static void f2fs_zone_write_end_io(struct bio *bio)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user