aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/Locking
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-03-16 09:07:58 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-16 16:48:06 -0400
commit1a102ff92579edeff5e3d5d3c76ca49977898f00 (patch)
tree5585d724c8a996b770bb7a621563a7535a8c0496 /Documentation/filesystems/Locking
parent011949811b946bd3b72fca71200f197c6168a5f8 (diff)
downloadkernel_i9300_mainline-1a102ff92579edeff5e3d5d3c76ca49977898f00.zip
kernel_i9300_mainline-1a102ff92579edeff5e3d5d3c76ca49977898f00.tar.gz
kernel_i9300_mainline-1a102ff92579edeff5e3d5d3c76ca49977898f00.tar.bz2
vfs: bury ->get_sb()
This is an ex-parrot. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'Documentation/filesystems/Locking')
-rw-r--r--Documentation/filesystems/Locking6
1 files changed, 2 insertions, 4 deletions
diff --git a/Documentation/filesystems/Locking b/Documentation/filesystems/Locking
index 4471a41..2e994ef 100644
--- a/Documentation/filesystems/Locking
+++ b/Documentation/filesystems/Locking
@@ -166,13 +166,11 @@ prototypes:
void (*kill_sb) (struct super_block *);
locking rules:
may block
-get_sb yes
mount yes
kill_sb yes
-->get_sb() returns error or 0 with locked superblock attached to the vfsmount
-(exclusive on ->s_umount).
-->mount() returns ERR_PTR or the root dentry.
+->mount() returns ERR_PTR or the root dentry; its superblock should be locked
+on return.
->kill_sb() takes a write-locked superblock, does all shutdown work on it,
unlocks and drops the reference.