From 680e667bc2e4e458a373bbfd367b7174e4972eb5 Mon Sep 17 00:00:00 2001
From: Christoph Hellwig <hch@lst.de>
Date: Tue, 19 Oct 2021 08:25:29 +0200
Subject: [Backport 680e667bc2e4] ntfs3: use sync_blockdev_nowait
Use sync_blockdev_nowait instead of opencoding it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20211019062530.2174626-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
---
src/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/inode.c b/src/inode.c
index 859951d785cb2f4380c85b1d799f66f008da7d45..a87ab3ad3cd386397e9c210c691824fe83b647a9 100644
--- a/src/inode.c
+++ b/src/inode.c
@@ -1046,7 +1046,7 @@ int ntfs_flush_inodes(struct super_block *sb, struct inode *i1,
if (!ret && i2)
ret = writeback_inode(i2);
if (!ret)
- ret = filemap_flush(sb->s_bdev->bd_inode->i_mapping);
+ ret = sync_blockdev_nowait(sb->s_bdev);
return ret;
}
--
2.31.1