diff options
author | David Sterba <dsterba@suse.cz> | 2011-04-20 18:48:27 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2011-05-02 07:57:21 -0400 |
commit | 172ddd60a662c4d8bf2809462866ddddd6431ea5 (patch) | |
tree | fc3c82d8e20a10f77fd26de64a58c416b80b42ac /fs/btrfs/volumes.c | |
parent | a8067e022ab54fde8953880a64572c3acca644dc (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/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 15d7dc943c9b..76acd1d235e4 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -2609,7 +2609,7 @@ static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans, | |||
2609 | 2609 | ||
2610 | trace_btrfs_chunk_alloc(info->chunk_root, map, start, *num_bytes); | 2610 | trace_btrfs_chunk_alloc(info->chunk_root, map, start, *num_bytes); |
2611 | 2611 | ||
2612 | em = alloc_extent_map(GFP_NOFS); | 2612 | em = alloc_extent_map(); |
2613 | if (!em) { | 2613 | if (!em) { |
2614 | ret = -ENOMEM; | 2614 | ret = -ENOMEM; |
2615 | goto error; | 2615 | goto error; |
@@ -3499,7 +3499,7 @@ static int read_one_chunk(struct btrfs_root *root, struct btrfs_key *key, | |||
3499 | free_extent_map(em); | 3499 | free_extent_map(em); |
3500 | } | 3500 | } |
3501 | 3501 | ||
3502 | em = alloc_extent_map(GFP_NOFS); | 3502 | em = alloc_extent_map(); |
3503 | if (!em) | 3503 | if (!em) |
3504 | return -ENOMEM; | 3504 | return -ENOMEM; |
3505 | num_stripes = btrfs_chunk_num_stripes(leaf, chunk); | 3505 | num_stripes = btrfs_chunk_num_stripes(leaf, chunk); |