Btrfs: fix extent buffer reference for tree mod log roots
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Tue, 23 Oct 2012 12:21:05 +0000 (14:21 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Wed, 24 Oct 2012 10:36:39 +0000 (12:36 +0200)
commitd638108484d186bf97a838d037f165d9b404e6ee
tree4fb20d045666fc7228fe8a149172eec07595b240
parent5b6602e762cae17c8891d19698afea451e9c1d95
Btrfs: fix extent buffer reference for tree mod log roots

In get_old_root we grab a lock on the extent buffer before we obtain a
reference on that buffer. That order is changed now.

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