linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] clean up speculative preallocation tracking and tagging
@ 2016-11-22 13:00 Brian Foster
  2016-11-22 13:01 ` [PATCH 1/3] xfs: track preallocation separately in xfs_bmapi_reserve_delalloc() Brian Foster
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Brian Foster @ 2016-11-22 13:00 UTC (permalink / raw)
  To: linux-xfs

Hi all,

These are a few patches that resulted from the following discussion with
regard to how to tag reflink inodes correctly for COW fork
preallocation:

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

The problem with the current code is that xfs_reflink_reserve_cow()
doesn't consider preallocation due to start offset alignment. The
problem with the first pass patch above is that the same function
doesn't distinguish between extent preallocation and extent merge.

The solution in this series pushes down the incorporation of
preallocation to the bmapi call, where it already has the additional
context to identify whether an extent allocation was widened due to
cowextszhint alignment. The callers are still responsible for defining
how much to preallocate, to throttle, retry if necessary, etc.

Note that this series is based on top of Christoph's recent extent
lookup cleanup patches. This survives xfstests for me on a reflink=1 fs.
Thoughts, reviews, flames appreciated.

Brian

Brian Foster (3):
  xfs: track preallocation separately in xfs_bmapi_reserve_delalloc()
  xfs: clean up cow fork reservation and tag inodes correctly
  xfs: pass post-eof speculative prealloc blocks to bmapi

 fs/xfs/libxfs/xfs_bmap.c | 23 +++++++++++++++++++++--
 fs/xfs/libxfs/xfs_bmap.h |  2 +-
 fs/xfs/xfs_iomap.c       | 33 +++++++++++++--------------------
 fs/xfs/xfs_reflink.c     | 29 +++--------------------------
 4 files changed, 38 insertions(+), 49 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2016-11-28  4:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-22 13:00 [PATCH 0/3] clean up speculative preallocation tracking and tagging Brian Foster
2016-11-22 13:01 ` [PATCH 1/3] xfs: track preallocation separately in xfs_bmapi_reserve_delalloc() Brian Foster
2016-11-22 13:01 ` [PATCH 2/3] xfs: clean up cow fork reservation and tag inodes correctly Brian Foster
2016-11-22 13:01 ` [PATCH 3/3] xfs: pass post-eof speculative prealloc blocks to bmapi Brian Foster
2016-11-28  4:01 ` [PATCH 0/3] clean up speculative preallocation tracking and tagging Dave Chinner

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).