diff options
author | David Howells <dhowells@redhat.com> | 2006-10-11 04:22:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:14:25 -0400 |
commit | 6ce315234aefcbc599dea390c15672156ebf9e7b (patch) | |
tree | ecf559a2b3f351dd35e274eb2d78fe6e2902c15c /fs/autofs4/autofs_i.h | |
parent | edc666e2ff9ec2e4e9510f1127c68c22cffc93f6 (diff) |
[PATCH] AUTOFS: Make sure all dentries refs are released before calling kill_anon_super()
Make sure all dentries refs are released before calling kill_anon_super() so
that the assumption that generic_shutdown_super() can completely destroy the
dentry tree for there will be no external references holds true.
What was being done in the put_super() superblock op, is now done in the
kill_sb() filesystem op instead, prior to calling kill_anon_super().
This makes the struct autofs_sb_info::root member variable redundant (since
sb->s_root is still available), and so that is removed. The calls to
shrink_dcache_sb() are also removed since they're also redundant as
shrink_dcache_for_umount() will now be called after the cleanup routine.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Ian Kent <raven@themaw.net>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/autofs4/autofs_i.h')
-rw-r--r-- | fs/autofs4/autofs_i.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index 480ab178cba5..b13f32c8aeee 100644 --- a/fs/autofs4/autofs_i.h +++ b/fs/autofs4/autofs_i.h | |||
@@ -94,7 +94,6 @@ struct autofs_wait_queue { | |||
94 | 94 | ||
95 | struct autofs_sb_info { | 95 | struct autofs_sb_info { |
96 | u32 magic; | 96 | u32 magic; |
97 | struct dentry *root; | ||
98 | int pipefd; | 97 | int pipefd; |
99 | struct file *pipe; | 98 | struct file *pipe; |
100 | pid_t oz_pgrp; | 99 | pid_t oz_pgrp; |
@@ -229,4 +228,4 @@ out: | |||
229 | } | 228 | } |
230 | 229 | ||
231 | void autofs4_dentry_release(struct dentry *); | 230 | void autofs4_dentry_release(struct dentry *); |
232 | 231 | extern void autofs4_kill_sb(struct super_block *); | |