diff options
author | Jan Kara <jack@suse.cz> | 2016-11-23 06:53:00 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2016-11-23 06:53:00 -0500 |
commit | ba6379f7e6c7e51b3c0e92672bc61bb6961c2b5e (patch) | |
tree | c5e086577b7eee8adec845698b23b6e3b33b9862 /include/linux/fs.h | |
parent | 9c763584b7c8911106bb77af7e648bef09af9d80 (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.h | 2 |
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); | |||
2949 | extern struct file_system_type *get_fs_type(const char *name); | 2949 | extern struct file_system_type *get_fs_type(const char *name); |
2950 | extern struct super_block *get_super(struct block_device *); | 2950 | extern struct super_block *get_super(struct block_device *); |
2951 | extern struct super_block *get_super_thawed(struct block_device *); | 2951 | extern struct super_block *get_super_thawed(struct block_device *); |
2952 | extern struct super_block *get_super_exclusive_thawed(struct block_device *bdev); | ||
2952 | extern struct super_block *get_active_super(struct block_device *bdev); | 2953 | extern struct super_block *get_active_super(struct block_device *bdev); |
2953 | extern void drop_super(struct super_block *sb); | 2954 | extern void drop_super(struct super_block *sb); |
2955 | extern void drop_super_exclusive(struct super_block *sb); | ||
2954 | extern void iterate_supers(void (*)(struct super_block *, void *), void *); | 2956 | extern void iterate_supers(void (*)(struct super_block *, void *), void *); |
2955 | extern void iterate_supers_type(struct file_system_type *, | 2957 | extern void iterate_supers_type(struct file_system_type *, |
2956 | void (*)(struct super_block *, void *), void *); | 2958 | void (*)(struct super_block *, void *), void *); |