Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e46f6bd8 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

f2fs: fix to update iostat correctly in IPU path



In error path of IPU, we didn't account iostat correctly, fix it.

Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 6492a335
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3182,10 +3182,10 @@ int f2fs_inplace_write_data(struct f2fs_io_info *fio)
	stat_inc_inplace_blocks(fio->sbi);

	err = f2fs_submit_page_bio(fio);
	if (!err)
	if (!err) {
		update_device_state(fio);

		f2fs_update_iostat(fio->sbi, fio->io_type, F2FS_BLKSIZE);
	}

	return err;
}