diff options
author | Christoph Hellwig | 2020-06-20 09:16:41 +0200 |
---|---|---|
committer | Jens Axboe | 2020-06-24 09:16:02 -0600 |
commit | 3f1266f1f82d7b8c72472a8921e80aa3e611fb62 (patch) | |
tree | 93e2039e02c3a6e90a4617b590a9ae62ba6205c3 /fs/internal.h | |
parent | dd0dca223e091bbacdd3c7ce9cf06b373da59816 (diff) |
block: move block-related definitions out of fs.h
Move most of the block related definition out of fs.h into more suitable
headers.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/internal.h')
-rw-r--r-- | fs/internal.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/fs/internal.h b/fs/internal.h index 9b863a7bd708..969988d3d397 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -23,7 +23,9 @@ struct user_namespace; extern void __init bdev_cache_init(void); extern int __sync_blockdev(struct block_device *bdev, int wait); - +void iterate_bdevs(void (*)(struct block_device *, void *), void *); +void emergency_thaw_bdev(struct super_block *sb); +void bd_forget(struct inode *inode); #else static inline void bdev_cache_init(void) { @@ -33,7 +35,18 @@ static inline int __sync_blockdev(struct block_device *bdev, int wait) { return 0; } -#endif +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; +} +static inline void bd_forget(struct inode *inode) +{ +} +#endif /* CONFIG_BLOCK */ /* * buffer.c |