diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-03 20:16:57 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 01:43:04 -0400 |
commit | 43e15cdbefea4ce6d68113de98d4f61c0cf45687 (patch) | |
tree | 75676aae179fc56bbb9d861c0ab656a9edaa7ca4 /include | |
parent | 44396f4b5cb8566f7118aec55eeac99be7ad94cb (diff) |
new helper: iterate_supers_type()
Call the given function for all superblocks of given type. Function
gets a superblock (with s_umount locked shared) and (void *) argument
supplied by caller of iterator.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index b5b979247863..a8735e7e1b35 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2432,6 +2432,8 @@ extern struct super_block *get_active_super(struct block_device *bdev); | |||
2432 | extern struct super_block *user_get_super(dev_t); | 2432 | extern struct super_block *user_get_super(dev_t); |
2433 | extern void drop_super(struct super_block *sb); | 2433 | extern void drop_super(struct super_block *sb); |
2434 | extern void iterate_supers(void (*)(struct super_block *, void *), void *); | 2434 | extern void iterate_supers(void (*)(struct super_block *, void *), void *); |
2435 | extern void iterate_supers_type(struct file_system_type *, | ||
2436 | void (*)(struct super_block *, void *), void *); | ||
2435 | 2437 | ||
2436 | extern int dcache_dir_open(struct inode *, struct file *); | 2438 | extern int dcache_dir_open(struct inode *, struct file *); |
2437 | extern int dcache_dir_close(struct inode *, struct file *); | 2439 | extern int dcache_dir_close(struct inode *, struct file *); |