diff options
author | Christoph Hellwig <hch@lst.de> | 2021-10-19 08:25:30 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-22 16:36:55 +0200 |
commit | 1e03a36bdff4709c1bbf0f57f60ae3f776d51adf (patch) | |
tree | c0036f9aa7fead90fc9ed6d3c4001a71881898ce /fs/internal.h | |
parent | ntfs3: use sync_blockdev_nowait (diff) | |
download | linux-1e03a36bdff4709c1bbf0f57f60ae3f776d51adf.tar.xz linux-1e03a36bdff4709c1bbf0f57f60ae3f776d51adf.zip |
block: simplify the block device syncing code
Get rid of the indirections and just provide a sync_bdevs
helper for the generic sync code.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211019062530.2174626-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/internal.h')
-rw-r--r-- | fs/internal.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/internal.h b/fs/internal.h index b5caa16f4645..cdd83d4899bb 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -23,17 +23,11 @@ struct pipe_inode_info; #ifdef CONFIG_BLOCK extern void __init bdev_cache_init(void); -void iterate_bdevs(void (*)(struct block_device *, void *), void *); void emergency_thaw_bdev(struct super_block *sb); #else static inline void bdev_cache_init(void) { } - -static inline void iterate_bdevs(void (*f)(struct block_device *, void *), - void *arg) -{ -} static inline int emergency_thaw_bdev(struct super_block *sb) { return 0; |