]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] ReiserFS: Make sure all dentries refs are released before calling kill_block_...
authorDavid Howells <dhowells@redhat.com>
Wed, 11 Oct 2006 08:22:14 +0000 (01:22 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 11 Oct 2006 18:14:25 +0000 (11:14 -0700)
commitedc666e2ff9ec2e4e9510f1127c68c22cffc93f6
tree21d139e520a4a7fa79464bbe46e3df145a231d27
parent9e42ef777f62277ea9bb70976be65bb374e00b9c
[PATCH] ReiserFS: Make sure all dentries refs are released before calling kill_block_super()

Make sure all dentries refs are released before calling kill_block_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_block_super().

Changes made in [try #2]:

 (*) reiserfs_kill_sb() now checks that the superblock FS info pointer is set
     before trying to dereference it.

Signed-off-by: David Howells <dhowells@redhat.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: <reiserfs-dev@namesys.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/reiserfs/super.c