diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-03-23 06:06:58 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-05-21 18:31:16 -0400 |
commit | 01a05b337a5b647909e1d6670f57e7202318a5fb (patch) | |
tree | 7877f08db14877d06346c8e1ef52aa17f2483e93 /include/linux/fs.h | |
parent | 35cf7ba0b46dc3582a01c3860b14bff122662aa3 (diff) |
new helper: iterate_supers()
... and switch the simple "loop over superblocks and do something"
loops to it.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 523086714c74..eeb04ba17b63 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2324,6 +2324,7 @@ extern struct super_block *get_super(struct block_device *); | |||
2324 | extern struct super_block *get_active_super(struct block_device *bdev); | 2324 | extern struct super_block *get_active_super(struct block_device *bdev); |
2325 | extern struct super_block *user_get_super(dev_t); | 2325 | extern struct super_block *user_get_super(dev_t); |
2326 | extern void drop_super(struct super_block *sb); | 2326 | extern void drop_super(struct super_block *sb); |
2327 | extern void iterate_supers(void (*)(struct super_block *, void *), void *); | ||
2327 | 2328 | ||
2328 | extern int dcache_dir_open(struct inode *, struct file *); | 2329 | extern int dcache_dir_open(struct inode *, struct file *); |
2329 | extern int dcache_dir_close(struct inode *, struct file *); | 2330 | extern int dcache_dir_close(struct inode *, struct file *); |