aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_map.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2011-04-20 18:48:27 -0400
committerDavid Sterba <dsterba@suse.cz>2011-05-02 07:57:21 -0400
commit172ddd60a662c4d8bf2809462866ddddd6431ea5 (patch)
treefc3c82d8e20a10f77fd26de64a58c416b80b42ac /fs/btrfs/extent_map.c
parenta8067e022ab54fde8953880a64572c3acca644dc (diff)
btrfs: drop gfp parameter from alloc_extent_map
pass GFP_NOFS directly to kmem_cache_alloc Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/extent_map.c')
-rw-r--r--fs/btrfs/extent_map.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c
index 3c8f374a8e2d..2d0410344ea3 100644
--- a/fs/btrfs/extent_map.c
+++ b/fs/btrfs/extent_map.c
@@ -40,16 +40,15 @@ void extent_map_tree_init(struct extent_map_tree *tree)
40 40
41/** 41/**
42 * alloc_extent_map - allocate new extent map structure 42 * alloc_extent_map - allocate new extent map structure
43 * @mask: memory allocation flags
44 * 43 *
45 * Allocate a new extent_map structure. The new structure is 44 * Allocate a new extent_map structure. The new structure is
46 * returned with a reference count of one and needs to be 45 * returned with a reference count of one and needs to be
47 * freed using free_extent_map() 46 * freed using free_extent_map()
48 */ 47 */
49struct extent_map *alloc_extent_map(gfp_t mask) 48struct extent_map *alloc_extent_map(void)
50{ 49{
51 struct extent_map *em; 50 struct extent_map *em;
52 em = kmem_cache_alloc(extent_map_cache, mask); 51 em = kmem_cache_alloc(extent_map_cache, GFP_NOFS);
53 if (!em) 52 if (!em)
54 return NULL; 53 return NULL;
55 em->in_tree = 0; 54 em->in_tree = 0;