Btrfs: fix accessing the root pointer in tree mod log functions
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Sat, 13 Apr 2013 13:19:54 +0000 (13:19 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:54:47 +0000 (15:54 -0400)
commit30b0463a9394d9e41596e96def5461fe33222f13
treeda71470b17140319065525250062db98f0bf5e15
parent90f8d62ebb55e2188c1618b650378f9857f9e9a4
Btrfs: fix accessing the root pointer in tree mod log functions

The tree mod log functions were accessing root->node->... directly, without
use of btrfs_root_node() or explicit rcu locking. This could lead to an
extent buffer reference being leaked and another reference being freed too
early when preemtion was enabled.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.c