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

Commit 551162c9 authored by Jaegeuk Kim's avatar Jaegeuk Kim Committed by Jaegeuk Kim
Browse files

f2fs: attach IO flags to the missing cases



This adds more IOs to attach flags.

Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 9c48217a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -691,6 +691,7 @@ int f2fs_submit_page_bio(struct f2fs_io_info *fio)
	if (fio->io_wbc && !is_read_io(fio->op))
		wbc_account_io(fio->io_wbc, page, PAGE_SIZE);

	__attach_io_flag(fio);
	bio_set_op_attrs(bio, fio->op, fio->op_flags);

	inc_page_count(fio->sbi, is_read_io(fio->op) ?
@@ -877,6 +878,7 @@ int f2fs_merge_page_bio(struct f2fs_io_info *fio)
alloc_new:
	if (!bio) {
		bio = __bio_alloc(fio, BIO_MAX_PAGES);
		__attach_io_flag(fio);
		bio_set_op_attrs(bio, fio->op, fio->op_flags);

		add_bio_entry(fio->sbi, bio, page, fio->temp);