diff options
author | Chris Mason <chris.mason@oracle.com> | 2011-03-23 19:54:42 +0100 |
---|---|---|
committer | root <Chris Mason chris.mason@oracle.com> | 2011-03-28 11:37:22 +0200 |
commit | 240f62c8756df285da11469259b3900f32883168 (patch) | |
tree | eb973ef95389a9511c137c7c26248dfd04a2495f /fs/btrfs/delayed-ref.c | |
parent | Btrfs: mark the bio with an error if we have a failure in dio (diff) | |
download | linux-240f62c8756df285da11469259b3900f32883168.tar.xz linux-240f62c8756df285da11469259b3900f32883168.zip |
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 <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/delayed-ref.c')
0 files changed, 0 insertions, 0 deletions