linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] xfs: basic cow fork speculative preallocation
@ 2016-11-28 19:09 Brian Foster
  2016-11-28 19:09 ` [PATCH 1/6] xfs: fiemap support for cow fork Brian Foster
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Brian Foster @ 2016-11-28 19:09 UTC (permalink / raw)
  To: linux-xfs

Hi all,

Here is a first legitimate pass at COW fork speculative preallocation.
Updates from the previously posted rfc are noted below. Highlights are
inclusion of the COW fork fiemap patch, support for throttling
preallocation on low free space conditions and refactoring tweaks to
create a separate helper for the data fork -> COW fork lookup sequence.
Other changes are minor updates based on review of the rfc. Note that I
decided to retain patch 3 as an independent patch and hopefully explain
it a bit better. We can still squash it into the subsequent patch if
warranted, however.

The xfs_io patch to take advantage of COW fork fiemap is available here:

  http://www.spinics.net/lists/linux-xfs/msg01710.html

This survives xfstests with the exception of generic/305, which appears
to just be a case of hardcoded accounting in the golden output file
changing due to preallocation. I'll have to figure out the best way to
deal with that (a preceding eofb scan perhaps?). Thoughts, reviews,
flames appreciated.

Brian

v1:
- Rebase onto for-next (new iext lookup helpers).
- Split off speculative prealloc refactor patches into separate series.
- Prepend the COW fork fiemap patch.
- Create xfs_iomap_search_extents() helper for data/COW fork extent
  lookup.
- Reuse xfs_iomap_prealloc_size() to incorporate prealloc throttling.
- Added patch to reclaim cowblocks on write failure due to ENOSPC.
rfc: http://www.spinics.net/lists/linux-xfs/msg02152.html

Brian Foster (6):
  xfs: fiemap support for cow fork
  xfs: refactor iomap delalloc existing extent search into helper
  xfs: logically separate iomap range from allocation range
  xfs: reuse iomap delalloc code for COW fork reservation
  xfs: free cowblocks and retry on buffered write ENOSPC
  xfs: implement basic COW fork speculative preallocation

 fs/xfs/xfs_file.c           |   1 +
 fs/xfs/xfs_iomap.c          | 315 +++++++++++++++++++++++++++++++++-----------
 fs/xfs/xfs_iomap.h          |   1 +
 fs/xfs/xfs_iops.c           |   4 +
 include/uapi/linux/fiemap.h |   1 +
 5 files changed, 244 insertions(+), 78 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2016-11-30 19:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-28 19:09 [PATCH 0/6] xfs: basic cow fork speculative preallocation Brian Foster
2016-11-28 19:09 ` [PATCH 1/6] xfs: fiemap support for cow fork Brian Foster
2016-11-28 19:15   ` Darrick J. Wong
2016-11-28 19:31     ` Brian Foster
2016-11-30 19:30       ` Christoph Hellwig
2016-11-28 19:09 ` [PATCH 2/6] xfs: refactor iomap delalloc existing extent search into helper Brian Foster
2016-11-30  1:15   ` Darrick J. Wong
2016-11-28 19:09 ` [PATCH 3/6] xfs: logically separate iomap range from allocation range Brian Foster
2016-11-30  1:21   ` Darrick J. Wong
2016-11-28 19:09 ` [PATCH 4/6] xfs: reuse iomap delalloc code for COW fork reservation Brian Foster
2016-11-28 19:09 ` [PATCH 5/6] xfs: free cowblocks and retry on buffered write ENOSPC Brian Foster
2016-11-28 19:09 ` [PATCH 6/6] xfs: implement basic COW fork speculative preallocation Brian Foster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).