Thread (14 messages) 14 messages, 3 authors, 2021-10-19
STALE1708d LANDED

[PATCH 6/7] ntfs3: use sync_blockdev_nowait

From: Christoph Hellwig <hch@lst.de>
Date: 2021-10-19 06:26:07
Also in: linux-block, linux-fsdevel, ntfs3, xen-devel
Subsystem: filesystems (vfs and infrastructure), ntfs3 filesystem, the rest · Maintainers: Alexander Viro, Christian Brauner, Konstantin Komarov, Linus Torvalds

Use sync_blockdev_nowait instead of opencoding it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 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 859951d785cb2..a87ab3ad3cd38 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;
 }
 
-- 
2.30.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help