Commit 680e667b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

ntfs3: use sync_blockdev_nowait

Use sync_blockdev_nowait instead of opencoding it.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20211019062530.2174626-7-hch@lst.deSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent cb9568ee
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment