projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86f3360
)
f2fs: don't issue flush in f2fs_flush_device_cache() for nobarrier case
author
Chao Yu
<yuchao0@huawei.com>
Mon, 12 Oct 2020 02:28:14 +0000
(10:28 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 14 Oct 2020 06:23:34 +0000
(23:23 -0700)
This patch changes f2fs_flush_device_cache() to skip issuing flush for
nobarrier case.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/segment.c
b/fs/f2fs/segment.c
index 05ab5ae2b5f7f06e303c3040bda11e4d6ac19d00..1596502f7375caa074e083b896652a4ec96dfded 100644
(file)
--- a/
fs/f2fs/segment.c
+++ b/
fs/f2fs/segment.c
@@
-759,6
+759,9
@@
int f2fs_flush_device_cache(struct f2fs_sb_info *sbi)
if (!f2fs_is_multi_device(sbi))
return 0;
+ if (test_opt(sbi, NOBARRIER))
+ return 0;
+
for (i = 1; i < sbi->s_ndevs; i++) {
if (!f2fs_test_bit(i, (char *)&sbi->dirty_device))
continue;