]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: make a lockdep class for each root
authorChris Mason <chris.mason@oracle.com>
Tue, 26 Jul 2011 20:11:19 +0000 (16:11 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 27 Jul 2011 16:46:46 +0000 (12:46 -0400)
commit3d25b4b34a33f65efe1d2621d55ef70575ec9b9c
tree56b7c66d03a72008e0db0bf4f58edbee5170fee1
parent0c934c5a5e86c2c32e4df36c11c298a906c2b445
Btrfs: make a lockdep class for each root

This patch was originally from Tejun Heo.  lockdep complains about the btrfs
locking because we sometimes take btree locks from two different trees at the
same time.  The current classes are based only on level in the btree, which
isn't enough information for lockdep to figure out if the lock is safe.

This patch makes a class for each type of tree, and lumps all the FS trees that
actually have files and directories into the same class.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent-tree.c
fs/btrfs/volumes.c