btrfs: clean away stripe_align helper
authorDavid Sterba <dsterba@suse.cz>
Wed, 4 Jun 2014 23:39:19 +0000 (01:39 +0200)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:16 +0000 (13:37 -0700)
Only wraps the ALIGN macro.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c

index d52da96..e105558 100644 (file)
@@ -6263,14 +6263,6 @@ int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root *root,
        return ret;
 }
 
-static u64 stripe_align(struct btrfs_root *root,
-                       struct btrfs_block_group_cache *cache,
-                       u64 val, u64 num_bytes)
-{
-       u64 ret = ALIGN(val, root->stripesize);
-       return ret;
-}
-
 /*
  * when we wait for progress in the block group caching, its because
  * our allocation attempt failed at least once.  So, we must sleep
@@ -6751,8 +6743,7 @@ unclustered_alloc:
                        goto loop;
                }
 checks:
-               search_start = stripe_align(root, block_group,
-                                           offset, num_bytes);
+               search_start = ALIGN(offset, root->stripesize);
 
                /* move on to the next group */
                if (search_start + num_bytes >