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 <Andy.Wu@sony.com> Reviewed-by: Aoyama, Wataru <wataru.aoyama@sony.com> Reviewed-by: Kobayashi, Kento <Kento.A.Kobayashi@sony.com> Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com> Signed-off-by: Yuezhang.Mo <Yuezhang.Mo@sony.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
1 parent c71510b commit 3d96652

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)