diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-04-19 02:57:44 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-05-06 20:18:11 +0300 |
commit | c550e25bca660ed2554cbb48d32b82d0bb98e4b1 (patch) | |
tree | 64a14c2af46208d4aa7cf6de77427cd7dd36ad00 /fs/f2fs/node.c | |
parent | dc2f78e2d4cc844a1458653d57ce1b54d4a29f21 (diff) | |
download | linux-c550e25bca660ed2554cbb48d32b82d0bb98e4b1.tar.xz |
f2fs: use flush command instead of FUA for zoned device
The block layer for zoned disk can reorder the FUA'ed IOs. Let's use flush
command to keep the write order.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r-- | fs/f2fs/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index c45d341dcf6e..144f9f966690 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -1631,7 +1631,7 @@ static int __write_node_page(struct page *page, bool atomic, bool *submitted, goto redirty_out; } - if (atomic && !test_opt(sbi, NOBARRIER)) + if (atomic && !test_opt(sbi, NOBARRIER) && !f2fs_sb_has_blkzoned(sbi)) fio.op_flags |= REQ_PREFLUSH | REQ_FUA; /* should add to global list before clearing PAGECACHE status */ |