public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC, PATCH 0/2] xfs: Fast zeroing of allocated space
@ 2010-07-27  5:55 Dave Chinner
  2010-07-27  5:55 ` [PATCH 1/2] xfs: use range primitives for xfs page cache operations Dave Chinner
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Dave Chinner @ 2010-07-27  5:55 UTC (permalink / raw)
  To: xfs

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
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-07-27 20:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-27  5:55 [RFC, PATCH 0/2] xfs: Fast zeroing of allocated space Dave Chinner
2010-07-27  5:55 ` [PATCH 1/2] xfs: use range primitives for xfs page cache operations Dave Chinner
2010-07-27  6:53   ` Christoph Hellwig
2010-07-27 12:05     ` Dave Chinner
2010-07-27  5:55 ` [PATCH 2/2] xfs: Introduce XFS_IOC_ZERO_RANGE Dave Chinner
2010-07-27  7:59   ` Christoph Hellwig
2010-07-27 20:49 ` [RFC, PATCH 0/2] xfs: Fast zeroing of allocated space Alex Elder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox