projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1226dff
)
fat: use sync_blockdev_nowait
author
Christoph Hellwig
<hch@lst.de>
Tue, 19 Oct 2021 06:25:28 +0000
(08:25 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 22 Oct 2021 14:36:55 +0000
(08:36 -0600)
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-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/fat/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/fat/inode.c
b/fs/fat/inode.c
index de0c9b013a8512098dbf73f5463b882cb45327f6..2fd5bfddb6958b6421504eb878880f820dc34afc 100644
(file)
--- a/
fs/fat/inode.c
+++ b/
fs/fat/inode.c
@@
-1943,10
+1943,8
@@
int fat_flush_inodes(struct super_block *sb, struct inode *i1, struct inode *i2)
ret = writeback_inode(i1);
if (!ret && i2)
ret = writeback_inode(i2);
- if (!ret) {
- struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping;
- ret = filemap_flush(mapping);
- }
+ if (!ret)
+ ret = sync_blockdev_nowait(sb->s_bdev);
return ret;
}
EXPORT_SYMBOL_GPL(fat_flush_inodes);