]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit197ec846df828c51c1d81af588fe3734ba0ca3ea
tree59920a3aab6db4997f6b7a95c753219bdc12bd64
parent8b259f1f5755de0cebc1b23173d879170325e9ba
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