Skip to content

RFC xfs: Fast zeroing of allocated space

Dave Chinner linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xfs: use range primitives for xfs page cache operationsfs/xfs/linux-2.6/xfs_fs_subr.c+10 -92 replies
2/2xfs: Introduce XFS_IOC_ZERO_RANGEfs/xfs/linux-2.6/xfs_ioctl.c fs/xfs/linux-2.6/xfs_ioctl32.c fs/xfs/xfs_bmap.c +3 more+32 -91 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAlex Elder
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC, PATCH 0/2] xfs: Fast zeroing of allocated space

These two patches allow conversion of a written range of a file into back into unwritten state. The first patch converts page cache helper functions to use the correct range primitives as we need to be able to toss (invalidate) pages only within the range specified, not to to the end of the file as it currently uses.

The actual conversion also preallocates any holes in the range, so it turns the entire range requested into allocated, unwritten extents.

I also have a patch that adds this functionality to fallocate(). I haven't tested that at all, but if this is something we want to support, I'd suggest that we want fallocate to be able to do it...

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs