Skip to content

Commit 3d96652

Browse files
YuezhangMonamjaejeon
authored andcommitted
exfat: fix missing REQ_SYNC in exfat_update_bhs()
If 'dirsync' is enabled, all directory updates within the filesystem should be done synchronously. exfat_update_bh() does as this, but exfat_update_bhs() does not. Reviewed-by: Andy.Wu <[email protected]> Reviewed-by: Aoyama, Wataru <[email protected]> Reviewed-by: Kobayashi, Kento <[email protected]> Reviewed-by: Sungjong Seo <[email protected]> Signed-off-by: Yuezhang.Mo <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
1 parent c71510b commit 3d96652

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/exfat/misc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/fs.h>
1111
#include <linux/slab.h>
1212
#include <linux/buffer_head.h>
13+
#include <linux/blk_types.h>
1314

1415
#include "exfat_raw.h"
1516
#include "exfat_fs.h"
@@ -180,7 +181,7 @@ int exfat_update_bhs(struct buffer_head **bhs, int nr_bhs, int sync)
180181
set_buffer_uptodate(bhs[i]);
181182
mark_buffer_dirty(bhs[i]);
182183
if (sync)
183-
write_dirty_buffer(bhs[i], 0);
184+
write_dirty_buffer(bhs[i], REQ_SYNC);
184185
}
185186

186187
for (i = 0; i < nr_bhs && sync; i++) {

0 commit comments

Comments
 (0)