summaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2016-11-23 06:53:00 -0500
committerJan Kara <jack@suse.cz>2016-11-23 06:53:00 -0500
commitba6379f7e6c7e51b3c0e92672bc61bb6961c2b5e (patch)
treec5e086577b7eee8adec845698b23b6e3b33b9862 /include/linux/fs.h
parent9c763584b7c8911106bb77af7e648bef09af9d80 (diff)
fs: Provide function to get superblock with exclusive s_umount
Quota code will need a variant of get_super_thawed() that returns superblock with s_umount held in exclusive mode to serialize quota on and quota off operations. Provide this functionality. Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index dc0478c07b2a..d04cfdefcd11 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2949,8 +2949,10 @@ extern void put_filesystem(struct file_system_type *fs);
2949extern struct file_system_type *get_fs_type(const char *name); 2949extern struct file_system_type *get_fs_type(const char *name);
2950extern struct super_block *get_super(struct block_device *); 2950extern struct super_block *get_super(struct block_device *);
2951extern struct super_block *get_super_thawed(struct block_device *); 2951extern struct super_block *get_super_thawed(struct block_device *);
2952extern struct super_block *get_super_exclusive_thawed(struct block_device *bdev);
2952extern struct super_block *get_active_super(struct block_device *bdev); 2953extern struct super_block *get_active_super(struct block_device *bdev);
2953extern void drop_super(struct super_block *sb); 2954extern void drop_super(struct super_block *sb);
2955extern void drop_super_exclusive(struct super_block *sb);
2954extern void iterate_supers(void (*)(struct super_block *, void *), void *); 2956extern void iterate_supers(void (*)(struct super_block *, void *), void *);
2955extern void iterate_supers_type(struct file_system_type *, 2957extern void iterate_supers_type(struct file_system_type *,
2956 void (*)(struct super_block *, void *), void *); 2958 void (*)(struct super_block *, void *), void *);