Btrfs: fix btrfs_unlock_up_safe to walk the entire path
authorChris Mason <chris.mason@oracle.com>
Wed, 4 Feb 2009 14:31:42 +0000 (09:31 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 4 Feb 2009 14:31:42 +0000 (09:31 -0500)
commit12f4daccfc3732280debba8f9ba49720372de831
tree922d52b907ea8495ab9362a789d607ed7f61b637
parent4d081c41a4f98aecb5e86ef7d3e644cc7b52131f
Btrfs: fix btrfs_unlock_up_safe to walk the entire path

btrfs_unlock_up_safe would break out at the first NULL node entry or
unlocked node it found in the path.

Some of the callers have missing nodes at the lower levels of the path, so this
commit fixes things to check all the nodes in the path before returning.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c