2024-06-07 12:19:00

by Konstantin Komarov

[permalink] [raw]
Subject: [PATCH 15/18] fs/ntfs3: Remove sync_blockdev_nowait()

Flush the file mapping directly.

Signed-off-by: Konstantin Komarov <[email protected]>
---
fs/ntfs3/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ntfs3/inode.c b/fs/ntfs3/inode.c
index f3f6af10a586..46130cbd08d4 100644
--- a/fs/ntfs3/inode.c
+++ b/fs/ntfs3/inode.c
@@ -1093,7 +1093,7 @@ int ntfs_flush_inodes(struct super_block *sb, struct inode *i1,
if (!ret && i2)
ret = writeback_inode(i2);
if (!ret)
- ret = sync_blockdev_nowait(sb->s_bdev);
+ ret = filemap_flush(sb->s_bdev_file->f_mapping);
return ret;
}

--
2.34.1