btrfs: prevent RCU warning when dereferencing radix tree slot
authorSasha Levin <sasha.levin@oracle.com>
Wed, 11 Jun 2014 16:00:25 +0000 (12:00 -0400)
committerChris Mason <clm@fb.com>
Fri, 13 Jun 2014 16:52:22 +0000 (09:52 -0700)
commitf1e3c289498f26d98b65ddaae0cd892c98a6ce84
treec0de1e193aca4b93a6a649d46d7c57c40147a6fc
parent5fbc7c59fd22c5a6531b40b0759624b680a95e52
btrfs: prevent RCU warning when dereferencing radix tree slot

Mark the dereference as protected by lock. Not doing so triggers
an RCU warning since the radix tree assumed that RCU is in use.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/tests/btrfs-tests.c