vfs: Provide function to get superblock and wait for it to thaw
authorJan Kara <jack@suse.cz>
Fri, 10 Feb 2012 10:03:00 +0000 (11:03 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 14 Feb 2012 01:45:38 +0000 (20:45 -0500)
commit6b6dc836a195e077e76977b6c020a73de411b46d
tree59920a3aab6db4997f6b7a95c753219bdc12bd64
parent074b85175a43a23fdbde60f55feea636e0bf0f85
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>
fs/super.c
include/linux/fs.h