diff options
author | Christoph Hellwig <hch@lst.de> | 2021-10-19 09:25:29 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-22 17:36:55 +0300 |
commit | 680e667bc2e4e458a373bbfd367b7174e4972eb5 (patch) | |
tree | d2edac7cc0c50bfbecf8908012dc285f25a585e0 | |
parent | cb9568ee755c8289855a7a5ce0e1ee0082eca576 (diff) | |
download | linux-680e667bc2e4e458a373bbfd367b7174e4972eb5.tar.xz |
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>
-rw-r--r-- | fs/ntfs3/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/inode.c b/fs/ntfs3/inode.c index 859951d785cb..a87ab3ad3cd3 100644 --- a/fs/ntfs3/inode.c +++ b/fs/ntfs3/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; } |