btrfs: assert we are holding the reada_lock when releasing a readahead zone
[linux-2.6-microblaze.git] / fs / btrfs / reada.c
index d9a166e..6e33cb7 100644 (file)
@@ -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);