From: Chris Mason Date: Tue, 22 Jul 2008 15:18:09 +0000 (-0400) Subject: Btrfs: Use mutex_lock_nested for tree locking X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~110 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dddcbeb28b34620ad033f1e8d9f6960bafdd7d2;p=pandora-kernel.git Btrfs: Use mutex_lock_nested for tree locking Lockdep has the notion of locking subclasses so that you can identify locks you expect to be taken after other locks of the same class. This changes the per-extent buffer btree locking routines to use a subclass based on the level in the tree. Unfortunately, lockdep can only handle 8 total subclasses, and the btrfs max level is also 8. So when lockdep is on, use a lower max level. Signed-off-by: Chris Mason --- Reading git-diff-tree failed