aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-02-06 13:57:58 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:34:52 +0200
commite323cfde7d022d57fd23edebe3bed1ab1596a314 (patch)
treee1e81abc8949ecb3dd0db2ee9a8d1ba6833c2216 /fs/f2fs
parent77ebb7644d6d0cf16cc21c05c6166a1dd2fe0031 (diff)
f2fs: remove preflush for nobarrier case
This patch removes REQ_PREFLUSH in the nobarrier case. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Conflicts: fs/f2fs/data.c
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 7c54c3897..2de3d42ab 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -307,9 +307,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 = WRITE_FLUSH | 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 |= WRITE_FLUSH | REQ_FUA;
}
__submit_merged_bio(io);
out: