]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Btrfs: fix spinlock assertions on UP systems
authorChris Mason <chris.mason@oracle.com>
Mon, 9 Mar 2009 15:45:38 +0000 (11:45 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 9 Mar 2009 15:45:38 +0000 (11:45 -0400)
commitb9447ef80bd301b932ac4d85c9622e929de5fd62
tree6d0bb1f287ed09f7850b77e2f622c3bebb35112b
parent4e06bdd6cbd5105376e7caf4e683ed131e777389
Btrfs: fix spinlock assertions on UP systems

btrfs_tree_locked was being used to make sure a given extent_buffer was
properly locked in a few places.  But, it wasn't correct for UP compiled
kernels.

This switches it to using assert_spin_locked instead, and renames it to
btrfs_assert_tree_locked to better reflect how it was really being used.

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