diff options
author | Jan Kara <jack@suse.cz> | 2012-07-03 10:45:31 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-22 15:58:45 -0400 |
commit | 5c0d6b60a0ba46d45020547eacf7199171920935 (patch) | |
tree | 7d9f99cc40981dc0872e1ac33317f48b9e1f2bfb /include | |
parent | b3de653105180b57af90ef2f5b8441f085f4ff56 (diff) |
vfs: Create function for iterating over block devices
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 48548bdd7722..6a6ca85bee23 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2102,6 +2102,7 @@ extern sector_t blkdev_max_block(struct block_device *bdev); | |||
2102 | extern void bd_forget(struct inode *inode); | 2102 | extern void bd_forget(struct inode *inode); |
2103 | extern void bdput(struct block_device *); | 2103 | extern void bdput(struct block_device *); |
2104 | extern void invalidate_bdev(struct block_device *); | 2104 | extern void invalidate_bdev(struct block_device *); |
2105 | extern void iterate_bdevs(void (*)(struct block_device *, void *), void *); | ||
2105 | extern int sync_blockdev(struct block_device *bdev); | 2106 | extern int sync_blockdev(struct block_device *bdev); |
2106 | extern void kill_bdev(struct block_device *); | 2107 | extern void kill_bdev(struct block_device *); |
2107 | extern struct super_block *freeze_bdev(struct block_device *); | 2108 | extern struct super_block *freeze_bdev(struct block_device *); |
@@ -2123,6 +2124,10 @@ static inline int thaw_bdev(struct block_device *bdev, struct super_block *sb) | |||
2123 | { | 2124 | { |
2124 | return 0; | 2125 | return 0; |
2125 | } | 2126 | } |
2127 | |||
2128 | static inline void iterate_bdevs(void (*f)(struct block_device *, void *), void *arg) | ||
2129 | { | ||
2130 | } | ||
2126 | #endif | 2131 | #endif |
2127 | extern int sync_filesystem(struct super_block *); | 2132 | extern int sync_filesystem(struct super_block *); |
2128 | extern const struct file_operations def_blk_fops; | 2133 | extern const struct file_operations def_blk_fops; |