Re: [PATCH 4/4] xfstests: speed up 227 by using preallocation

Rich Johnston
2012-08-16T19:16:30Z

On 07/26/2012 03:35 AM, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> Test 227 (fsr test) creates fragmented fre space by doing lots of
> small writes to sparse offsets ni a file. This seeks the disk heads
> around a lot writing data. We don't need to write data - just
> trigger allocation. Hence use preallocation instead of data writes
> and run at allocation speed rather than data write speed.
>
> Signed-off-by: Dave Chinner <dchinner@redhat.com>
> ---
> 227 | 46 +++++++++++++++++++++++++++++++++-------------
> 1 file changed, 33 insertions(+), 13 deletions(-)

Looks good to me.

Reviewed-by: Rich Johnston <rjohnston@sgi.com>