diff options
Diffstat (limited to 'fs/btrfs/extent_map.c')
-rw-r--r-- | fs/btrfs/extent_map.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c index 84fb56d5c018..318b048eb254 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <linux/hardirq.h> | 4 | #include <linux/hardirq.h> |
5 | #include "ctree.h" | 5 | #include "ctree.h" |
6 | #include "extent_map.h" | 6 | #include "extent_map.h" |
7 | #include "compression.h" | ||
7 | 8 | ||
8 | 9 | ||
9 | static struct kmem_cache *extent_map_cache; | 10 | static struct kmem_cache *extent_map_cache; |
@@ -20,8 +21,7 @@ int __init extent_map_init(void) | |||
20 | 21 | ||
21 | void extent_map_exit(void) | 22 | void extent_map_exit(void) |
22 | { | 23 | { |
23 | if (extent_map_cache) | 24 | kmem_cache_destroy(extent_map_cache); |
24 | kmem_cache_destroy(extent_map_cache); | ||
25 | } | 25 | } |
26 | 26 | ||
27 | /** | 27 | /** |
@@ -62,7 +62,7 @@ struct extent_map *alloc_extent_map(void) | |||
62 | 62 | ||
63 | /** | 63 | /** |
64 | * free_extent_map - drop reference count of an extent_map | 64 | * free_extent_map - drop reference count of an extent_map |
65 | * @em: extent map beeing releasead | 65 | * @em: extent map being releasead |
66 | * | 66 | * |
67 | * Drops the reference out on @em by one and free the structure | 67 | * Drops the reference out on @em by one and free the structure |
68 | * if the reference count hits zero. | 68 | * if the reference count hits zero. |
@@ -422,7 +422,7 @@ struct extent_map *search_extent_mapping(struct extent_map_tree *tree, | |||
422 | /** | 422 | /** |
423 | * remove_extent_mapping - removes an extent_map from the extent tree | 423 | * remove_extent_mapping - removes an extent_map from the extent tree |
424 | * @tree: extent tree to remove from | 424 | * @tree: extent tree to remove from |
425 | * @em: extent map beeing removed | 425 | * @em: extent map being removed |
426 | * | 426 | * |
427 | * Removes @em from @tree. No reference counts are dropped, and no checks | 427 | * Removes @em from @tree. No reference counts are dropped, and no checks |
428 | * are done to see if the range is in use | 428 | * are done to see if the range is in use |