fs/ntfs3: Remove sync_blockdev_nowait()

Flush the file mapping directly.

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
Konstantin Komarov 2024-06-03 09:57:12 +03:00
parent 24c5100ace
commit bc81e773fe
No known key found for this signature in database
GPG Key ID: A9B0331F832407B6

View File

@ -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;
}