Btrfs: fix unprotected root node of the subvolume's inode rb-tree
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 15 May 2013 07:48:16 +0000 (07:48 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Sat, 18 May 2013 01:40:30 +0000 (21:40 -0400)
commite1409cef85894f96f4bddc6633d64d1c5275e2a3
tree712194a90f35e47e18f23b29cc630674befd5fc2
parent89042e5ad23d50449691141334f30d53d6271266
Btrfs: fix unprotected root node of the subvolume's inode rb-tree

The root node of the rb-tree may be changed, so we should get it under
the lock. Fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/inode.c