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

Commit 7f54f51f authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: remove preflush for nobarrier case



This patch removes REQ_PREFLUSH in the nobarrier case.

Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 942fd319
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -306,9 +306,9 @@ static void __f2fs_submit_merged_bio(struct f2fs_sb_info *sbi,
	if (type >= META_FLUSH) {
		io->fio.type = META_FLUSH;
		io->fio.op = REQ_OP_WRITE;
		io->fio.op_flags = REQ_PREFLUSH | REQ_META | REQ_PRIO;
		io->fio.op_flags = REQ_META | REQ_PRIO;
		if (!test_opt(sbi, NOBARRIER))
			io->fio.op_flags |= REQ_FUA;
			io->fio.op_flags |= REQ_PREFLUSH | REQ_FUA;
	}
	__submit_merged_bio(io);
out: