From: Josef Bacik Date: Wed, 8 Dec 2010 14:15:11 +0000 (-0500) Subject: Btrfs: do not do fast caching if we are allocating blocks for tree_root X-Git-Tag: v2.6.37-rc6~30^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8399dee478db7939cd0d6fda8ecacddf2facd03;p=pandora-kernel.git Btrfs: do not do fast caching if we are allocating blocks for tree_root Since the fast caching uses normal tree locking, we can possibly deadlock if we get to the caching via a btrfs_search_slot() on the tree_root. So just check to see if the root we are on is the tree root, and just don't do the fast caching. Reported-by: Sage Weil Signed-off-by: Josef Bacik --- Reading git-diff-tree failed