From: Dave Chinner Date: Tue, 24 Aug 2010 02:02:11 +0000 (+1000) Subject: xfs: Introduce XFS_IOC_ZERO_RANGE X-Git-Tag: v2.6.37-rc1~162^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=447223520520b17d3b6d0631aa4838fbaf8eddb4;p=pandora-kernel.git xfs: Introduce XFS_IOC_ZERO_RANGE 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. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig --- Reading git-diff-tree failed