summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-02-06 22:57:58 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2017-02-23 19:10:48 +0100
commit7f54f51f46f69f3ccde2b65e682a51b0aa6199c3 (patch)
tree17d2fd93b042744045c78f221f444d928ba30b68 /fs/f2fs/data.c
parentf2fs: check last page index in cached bio to decide submission (diff)
downloadlinux-7f54f51f46f69f3ccde2b65e682a51b0aa6199c3.tar.xz
linux-7f54f51f46f69f3ccde2b65e682a51b0aa6199c3.zip
f2fs: remove preflush for nobarrier case
This patch removes REQ_PREFLUSH in the nobarrier case. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to '')
-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 d14cc8be14f1..8c61fa7fd27d 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -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: