search for: btrfs_cache_cr

Displaying 1 result from an estimated 1 matches for "btrfs_cache_cr".

Did you mean: btrfs_cache_no
2007 Nov 06
0
[PATCH] check return value in extent map allocation
...t_map.c --- a/extent_map.c Thu Sep 20 14:14:42 2007 -0400 +++ b/extent_map.c Tue Nov 06 19:06:04 2007 -0500 @@ -36,16 +36,23 @@ struct tree_entry { #define EXTENT_IOBITS (EXTENT_LOCKED | EXTENT_WRITEBACK) -void __init extent_map_init(void) +int __init extent_map_init(void) { extent_map_cache = btrfs_cache_create("extent_map", sizeof(struct extent_map), SLAB_DESTROY_BY_RCU, NULL); + if (!extent_map_cache) + return -ENOMEM; + extent_state_cache = btrfs_cache_create("extent_state", sizeof(struct extent_state), SLAB_DESTROY_BY_RCU,...