diff options
author | Jan Kara <jack@suse.cz> | 2012-02-10 14:03:00 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-02-14 05:45:38 +0400 |
commit | 6b6dc836a195e077e76977b6c020a73de411b46d (patch) | |
tree | 59920a3aab6db4997f6b7a95c753219bdc12bd64 /include/linux/fs.h | |
parent | 074b85175a43a23fdbde60f55feea636e0bf0f85 (diff) | |
download | linux-6b6dc836a195e077e76977b6c020a73de411b46d.tar.xz |
vfs: Provide function to get superblock and wait for it to thaw
In quota code we need to find a superblock corresponding to a device and wait
for superblock to be unfrozen. However this waiting has to happen without
s_umount semaphore because that is required for superblock to thaw. So provide
a function in VFS for this to keep dances with s_umount where they belong.
[AV: implementation switched to saner variant]
Signed-off-by: Jan Kara <jack@suse.cz>
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 386da09f229d..69cd5bb640f5 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2496,6 +2496,7 @@ extern void get_filesystem(struct file_system_type *fs); extern void put_filesystem(struct file_system_type *fs); extern struct file_system_type *get_fs_type(const char *name); extern struct super_block *get_super(struct block_device *); +extern struct super_block *get_super_thawed(struct block_device *); extern struct super_block *get_active_super(struct block_device *bdev); extern void drop_super(struct super_block *sb); extern void iterate_supers(void (*)(struct super_block *, void *), void *); |