Commit 4e54b17a authored by David Sterba's avatar David Sterba Committed by Chris Mason

btrfs: clean away stripe_align helper

Only wraps the ALIGN macro.
Signed-off-by: default avatarDavid Sterba <dsterba@suse.cz>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 707e8a07
......@@ -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 @@ static noinline int find_free_extent(struct btrfs_root *orig_root,
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 >
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment