projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
btrfs: assert we are holding the reada_lock when releasing a readahead zone
[linux-2.6-microblaze.git]
/
fs
/
btrfs
/
reada.c
diff --git
a/fs/btrfs/reada.c
b/fs/btrfs/reada.c
index
d9a166e
..
6e33cb7
100644
(file)
--- a/
fs/btrfs/reada.c
+++ b/
fs/btrfs/reada.c
@@
-531,6
+531,8
@@
static void reada_zone_release(struct kref *kref)
{
struct reada_zone *zone = container_of(kref, struct reada_zone, refcnt);
+ lockdep_assert_held(&zone->device->fs_info->reada_lock);
+
radix_tree_delete(&zone->device->reada_zones,
zone->end >> PAGE_SHIFT);