xfs: push rounddown_pow_of_two() to after prealloc throttle
authorBrian Foster <bfoster@redhat.com>
Mon, 18 Mar 2013 14:51:44 +0000 (10:51 -0400)
committerBen Myers <bpm@sgi.com>
Fri, 22 Mar 2013 21:05:00 +0000 (16:05 -0500)
commitc9bdbdc0741d90908f492415c890b630f43f17f8
treecf8bf3498ad3b724adcd3b609947e8d88cfed0f7
parent3c58b5f809eda8ae8d891b7a87d0a235ab0f9bf5
xfs: push rounddown_pow_of_two() to after prealloc throttle

The round down occurs towards the beginning of the function. Push
it down after throttling has occurred. This is to support adding
further transformations to 'alloc_blocks' that might not preserve
power-of-two alignment (and thus could lead to rounding down
multiple times).

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_iomap.c