Blame SOURCES/0106-ntfs3-use-sync_blockdev_nowait.patch

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