Displaying 3 results from an estimated 3 matches for "extent_map_exit".
2007 Nov 06
0
[PATCH] check return value in extent map allocation
..._RCU,
NULL);
+ if (!extent_map_cache)
+ return -ENOMEM;
+
extent_state_cache = btrfs_cache_create("extent_state",
sizeof(struct extent_state),
SLAB_DESTROY_BY_RCU,
NULL);
+ if (!extent_state_cache)
+ return -ENOMEM;
+
+ return 0;
}
void __exit extent_map_exit(void)
diff -r 29b8cc7794ac extent_map.h
--- a/extent_map.h Thu Sep 20 14:14:42 2007 -0400
+++ b/extent_map.h Tue Nov 06 19:06:04 2007 -0500
@@ -78,7 +78,7 @@ void free_extent_map(struct extent_map *
void free_extent_map(struct extent_map *em);
int extent_read_full_page(struct extent_map_tree *tre...
2013 Jan 16
6
[PATCH V2] mm/slab: add a leak decoder callback
...%d\n",
+ em->start, em->len, em->block_start, em->flags,
+ atomic_read(&em->refs), em->in_tree, (int)em->compress_type);
+}
+
int __init extent_map_init(void)
{
extent_map_cache = kmem_cache_create("btrfs_extent_map",
@@ -39,7 +49,8 @@ void extent_map_exit(void)
}
if (extent_map_cache)
- kmem_cache_destroy(extent_map_cache);
+ kmem_cache_destroy_decoder(extent_map_cache,
+ extent_map_leak_decoder);
}
/**
diff --git a/include/linux/slab.h b/include/linux/slab.h
index 5d168d7..5c6a8d8 100644
--- a/include/linux/slab.h
+++ b/include/l...
2011 Oct 04
68
[patch 00/65] Error handling patchset v3
Hi all -
Here''s my current error handling patchset, against 3.1-rc8. Almost all of
this patchset is preparing for actual error handling. Before we start in
on that work, I''m trying to reduce the surface we need to worry about. It
turns out that there is a ton of code that returns an error code but never
actually reports an error.
The patchset has grown to 65 patches. 46 of them