fs/exfat: fix compile error on kernel 4.14
authorShiyong Li <a22381@motorola.com>
Wed, 18 Jul 2018 00:12:00 +0000 (17:12 -0700)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:36:51 +0000 (17:36 +0800)
WRITE_SYNC is not defined on new kernel.

Change-Id: If47e84c06a0e52ccf4a7a116d233f8d8c924191e
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1207791
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1276887
Reviewed-by: Hua Tan <tanhua1@motorola.com>
fs/exfat/exfat_blkdev.c

index e3280fd35b71fe6741d150180918ccc377c08342..f581b167e1d6a0699044e77ce6c752f0fb35f3de 100644 (file)
@@ -158,7 +158,7 @@ s32 bdev_sync_dirty_buffer(struct buffer_head *bh,
                get_bh(bh);
                bh->b_private = sb;
                bh->b_end_io = exfat_end_buffer_write_sync;
-               ret = submit_bh(REQ_OP_WRITE, WRITE_SYNC, bh);
+               ret = submit_bh(REQ_OP_WRITE, REQ_SYNC, bh);
                if (sync) {
                        wait_on_buffer(bh);
                        if (!ret && !buffer_uptodate(bh))