btrfs: preparation to fixing mount/umount race
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 17 Nov 2011 06:00:31 +0000 (01:00 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Jan 2012 00:33:22 +0000 (19:33 -0500)
commit98c7089c769048f941bd5c5285287f8fc301f8b1
tree3e31f46b43fb1b533dc720db7a9d84da3b148433
parent48fa57ac2c30a8a0b770b7ad50b4b30c1d12f005
btrfs: preparation to fixing mount/umount race

We need fs_info and root to live until the moment when the victim
superblock leaves the list, so we need to postpone free_fs_info()
until after ->put_super().  The call is buried in close_ctree(),
though, so we need to lift it into the callers (including
btrfs_put_super()) first.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/btrfs/disk-io.c
fs/btrfs/super.c