diff options
| author | Chao Yu <yuchao0@huawei.com> | 2019-02-21 20:40:13 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-03-14 13:58:30 -0700 |
| commit | 2e7ee431e4c36d2da217c06d9138e71a8b93bc5a (patch) | |
| tree | bfcc02f4c70e80944d4256df761b85df450cb4dd | |
| parent | ac589b083d7345a7942210ca4f2901ae2758ce82 (diff) | |
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: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
| -rw-r--r-- | fs/f2fs/segment.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index cebfcadcb9df..4a4d49f4482f 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -3259,10 +3259,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); + f2fs_update_iostat(fio->sbi, fio->io_type, F2FS_BLKSIZE); + } return err; } |
