From: Chris Mason Date: Wed, 23 Mar 2011 18:54:42 +0000 (-0400) Subject: Btrfs: use RCU instead of a spinlock to protect the root node X-Git-Tag: v2.6.39-rc1~19^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=240f62c8756df285da11469259b3900f32883168;p=pandora-kernel.git Btrfs: use RCU instead of a spinlock to protect the root node The pointer to the extent buffer for the root of each tree is protected by a spinlock so that we can safely read the pointer and take a reference on the extent buffer. But now that the extent buffers are freed via RCU, we can safely use rcu_read_lock instead. Signed-off-by: Chris Mason --- Reading git-diff-tree failed