[Top] [All Lists]

Re: [PATCH 2/2] xfs: Introduce XFS_IOC_ZERO_RANGE

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: [PATCH 2/2] xfs: Introduce XFS_IOC_ZERO_RANGE
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Tue, 3 Aug 2010 14:56:52 -0400
Cc: xfs@xxxxxxxxxxx
In-reply-to: <1280816526-30100-3-git-send-email-david@xxxxxxxxxxxxx>
References: <1280816526-30100-1-git-send-email-david@xxxxxxxxxxxxx> <1280816526-30100-3-git-send-email-david@xxxxxxxxxxxxx>
User-agent: Mutt/1.5.20 (2009-08-17)
On Tue, Aug 03, 2010 at 04:22:06PM +1000, Dave Chinner wrote:
> From: Dave Chinner <dchinner@xxxxxxxxxx>
> XFS_IOC_ZERO_RANGE is the equivalent of an atomic XFS_IOC_UNRESVSP/
> XFS_IOC_RESVSP call pair. It enabled ranges of written data to be
> turned into zeroes without requiring IO or having to free and
> reallocate the extents in the range given as would occur if we had
> to punch and then preallocate them separately.  This enables
> applications to zero parts of files very quickly without changing
> the layout of the files in any way.

Looks good,

Reviewed-by: Christoph Hellwig <hch@xxxxxx>

<Prev in Thread] Current Thread [Next in Thread>