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

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

f2fs: fix to update F2FS_{CP_}WB_DATA count correctly



We should only account F2FS_{CP_}WB_DATA IOs for write path, fix it.

Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent f0cdbfe6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -398,6 +398,7 @@ int f2fs_submit_page_mbio(struct f2fs_io_info *fio)
		if ((fio->type == DATA || fio->type == NODE) &&
				fio->new_blkaddr & F2FS_IO_SIZE_MASK(sbi)) {
			err = -EAGAIN;
			if (!is_read)
				dec_page_count(sbi, WB_DATA_TYPE(bio_page));
			goto out_fail;
		}