Merge branch 'allocator' of git://git.kernel.org/pub/scm/linux/kernel/git/arne/btrfs...
authorChris Mason <chris.mason@oracle.com>
Sun, 22 May 2011 16:36:34 +0000 (12:36 -0400)
committerChris Mason <chris.mason@oracle.com>
Sun, 22 May 2011 16:36:34 +0000 (12:36 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
1  2 
fs/btrfs/super.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h

Simple merge
@@@ -2593,13 -2490,14 +2446,14 @@@ static int __btrfs_alloc_chunk(struct b
        map->sub_stripes = sub_stripes;
  
        *map_ret = map;
-       *stripe_size = calc_size;
-       *num_bytes = chunk_bytes_by_type(type, calc_size,
-                                        map->num_stripes, sub_stripes);
+       num_bytes = stripe_size * (num_stripes / ncopies);
+       *stripe_size_out = stripe_size;
+       *num_bytes_out = num_bytes;
  
-       trace_btrfs_chunk_alloc(info->chunk_root, map, start, *num_bytes);
+       trace_btrfs_chunk_alloc(info->chunk_root, map, start, num_bytes);
  
 -      em = alloc_extent_map(GFP_NOFS);
 +      em = alloc_extent_map();
        if (!em) {
                ret = -ENOMEM;
                goto error;
Simple merge