linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Brian Foster <bfoster@redhat.com>
Cc: david@fromorbit.com, linux-xfs@vger.kernel.org,
	Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH 35/63] xfs: move mappings from cow fork to data fork after copy-write
Date: Wed, 5 Oct 2016 14:22:23 -0700	[thread overview]
Message-ID: <20161005212223.GB3992@birch.djwong.org> (raw)
In-Reply-To: <20161005182648.GB4042@bfoster.bfoster>

On Wed, Oct 05, 2016 at 02:26:48PM -0400, Brian Foster wrote:
> On Thu, Sep 29, 2016 at 08:09:27PM -0700, Darrick J. Wong wrote:
> > After the write component of a copy-write operation finishes, clean up
> > the bookkeeping left behind.  On error, we simply free the new blocks
> > and pass the error up.  If we succeed, however, then we must remove
> > the old data fork mapping and move the cow fork mapping to the data
> > fork.
> > 
> > Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
> > [hch: Call the CoW failure function during xfs_cancel_ioend]
> > Signed-off-by: Christoph Hellwig <hch@lst.de>
> > ---
> > v2: If CoW fails, we need to remove the CoW fork mapping and free the
> > blocks.  Furthermore, if xfs_cancel_ioend happens, we also need to
> > clean out all the CoW record keeping.
> > 
> > v3: When we're removing CoW extents, only free one extent per
> > transaction to avoid running out of reservation.  Also,
> > xfs_cancel_ioend mustn't clean out the CoW fork because it is called
> > when async writeback can't get an inode lock and will try again.
> > 
> > v4: Use bmapi_read to iterate the CoW fork instead of calling the
> > iext functions directly, and make the CoW remapping atomic by
> > using the deferred ops mechanism which takes care of logging redo
> > items for us.
> > 
> > v5: Unlock the inode if cancelling the CoW reservation fails.
> > ---
> >  fs/xfs/xfs_aops.c    |   22 ++++
> >  fs/xfs/xfs_reflink.c |  271 ++++++++++++++++++++++++++++++++++++++++++++++++++
> >  fs/xfs/xfs_reflink.h |    8 +
> >  3 files changed, 299 insertions(+), 2 deletions(-)
> > 
> > 
> > diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c
> > index 7b1e9de..aa23993 100644
> > --- a/fs/xfs/xfs_aops.c
> > +++ b/fs/xfs/xfs_aops.c
> > @@ -288,6 +288,23 @@ xfs_end_io(
> >  		error = -EIO;
> >  
> >  	/*
> > +	 * For a CoW extent, we need to move the mapping from the CoW fork
> > +	 * to the data fork.  If instead an error happened, just dump the
> > +	 * new blocks.
> > +	 */
> > +	if (ioend->io_type == XFS_IO_COW) {
> > +		if (ioend->io_bio->bi_error) {
> > +			error = xfs_reflink_cancel_cow_range(ip,
> > +					ioend->io_offset, ioend->io_size);
> > +			goto done;
> > +		}
> 
> I'm a little confused why we'd clear out delalloc blocks here but not if
> the write happens to fail in the first place (but I take it the
> explanation for my previous comment still applies..).

Originally I thought that it would be a good idea to get rid of blocks
if the actual write IO fails.  Maybe we should just leave it, in case
a subsequent retry does not also fail.

> > +		error = xfs_reflink_end_cow(ip, ioend->io_offset,
> > +				ioend->io_size);
> > +		if (error)
> > +			goto done;
> 
> This hunk clobbers error if set by the previous check (not shown in the
> diff) due to fs shutdown.

D'oh.  Well, if the FS is shutdown there's little point in updating
metadata, so I guess we can just jump out.

> > +	}
> > +
> > +	/*
> >  	 * For unwritten extents we need to issue transactions to convert a
> >  	 * range to normal written extens after the data I/O has finished.
> >  	 * Detecting and handling completion IO errors is done individually
> > @@ -302,7 +319,8 @@ xfs_end_io(
> >  	} else if (ioend->io_append_trans) {
> >  		error = xfs_setfilesize_ioend(ioend, error);
> >  	} else {
> > -		ASSERT(!xfs_ioend_is_append(ioend));
> > +		ASSERT(!xfs_ioend_is_append(ioend) ||
> > +		       ioend->io_type == XFS_IO_COW);
> >  	}
> >  
> >  done:
> > @@ -316,7 +334,7 @@ xfs_end_bio(
> >  	struct xfs_ioend	*ioend = bio->bi_private;
> >  	struct xfs_mount	*mp = XFS_I(ioend->io_inode)->i_mount;
> >  
> > -	if (ioend->io_type == XFS_IO_UNWRITTEN)
> > +	if (ioend->io_type == XFS_IO_UNWRITTEN || ioend->io_type == XFS_IO_COW)
> >  		queue_work(mp->m_unwritten_workqueue, &ioend->io_work);
> >  	else if (ioend->io_append_trans)
> >  		queue_work(mp->m_data_workqueue, &ioend->io_work);
> > diff --git a/fs/xfs/xfs_reflink.c b/fs/xfs/xfs_reflink.c
> > index e8c7c85..d913ad1 100644
> > --- a/fs/xfs/xfs_reflink.c
> > +++ b/fs/xfs/xfs_reflink.c
> > @@ -52,6 +52,7 @@
> >  #include "xfs_bmap_btree.h"
> >  #include "xfs_reflink.h"
> >  #include "xfs_iomap.h"
> > +#include "xfs_rmap_btree.h"
> >  
> >  /*
> >   * Copy on Write of Shared Blocks
> > @@ -114,6 +115,37 @@
> >   * ioend, the better.
> >   */
> >  
> > +/* Trim extent to fit a logical block range. */
> > +static void
> > +xfs_trim_extent(
> > +	struct xfs_bmbt_irec	*irec,
> > +	xfs_fileoff_t		bno,
> > +	xfs_filblks_t		len)
> > +{
> > +	xfs_fileoff_t		distance;
> > +	xfs_fileoff_t		end = bno + len;
> > +
> > +	if (irec->br_startoff + irec->br_blockcount <= bno ||
> > +	    irec->br_startoff >= end) {
> 
> Hmm, this seems like slightly strange behavior. Why reset blockcount on
> an extent for a request to trim it to something beyond the extent? Is
> this primarily an error/sanity check or is this an expected case?
> 
> As it is, it looks like bno should point to the end of irec in most
> cases unless the unmap happens to remove less from the data fork than
> what has been allocated in the cow fork (which seems sane). I wonder if
> we just want to ASSERT() that the extent and trim range are sane here?

There are only two callers of this function, both of which can be
replaced by:

	uirec.br_startblock = irec->br_startblock + rlen;
	uirec.br_startoff = irec->br_startoff + rlen;
	uirec.br_blockcount = irec->br_blockcount - rlen;

so I'll just purge this function entirely.

> > +		irec->br_blockcount = 0;
> > +		return;
> > +	}
> > +
> > +	if (irec->br_startoff < bno) {
> > +		distance = bno - irec->br_startoff;
> > +		if (irec->br_startblock != DELAYSTARTBLOCK &&
> > +		    irec->br_startblock != HOLESTARTBLOCK)
> > +			irec->br_startblock += distance;
> > +		irec->br_startoff += distance;
> > +		irec->br_blockcount -= distance;
> > +	}
> > +
> > +	if (end < irec->br_startoff + irec->br_blockcount) {
> > +		distance = irec->br_startoff + irec->br_blockcount - end;
> > +		irec->br_blockcount -= distance;
> > +	}
> > +}
> > +
> >  /*
> >   * Given an AG extent, find the lowest-numbered run of shared blocks within
> >   * that range and return the range in fbno/flen.
> > @@ -400,3 +432,242 @@ xfs_reflink_trim_irec_to_next_cow(
> >  
> >  	return 0;
> >  }
> > +
> > +/*
> > + * Cancel all pending CoW reservations for some block range of an inode.
> > + */
> > +int
> > +xfs_reflink_cancel_cow_blocks(
> > +	struct xfs_inode		*ip,
> > +	struct xfs_trans		**tpp,
> > +	xfs_fileoff_t			offset_fsb,
> > +	xfs_fileoff_t			end_fsb)
> > +{
> > +	struct xfs_bmbt_irec		irec;
> > +	xfs_filblks_t			count_fsb;
> > +	xfs_fsblock_t			firstfsb;
> > +	struct xfs_defer_ops		dfops;
> > +	int				error = 0;
> > +	int				nimaps;
> > +
> > +	if (!xfs_is_reflink_inode(ip))
> > +		return 0;
> > +
> > +	/* Go find the old extent in the CoW fork. */
> > +	count_fsb = (xfs_filblks_t)(end_fsb - offset_fsb);
> > +	while (count_fsb) {
> > +		nimaps = 1;
> > +		error = xfs_bmapi_read(ip, offset_fsb, count_fsb, &irec,
> > +				&nimaps, XFS_BMAPI_COWFORK);
> > +		if (error)
> > +			break;
> > +		ASSERT(nimaps == 1);
> > +
> > +		trace_xfs_reflink_cancel_cow(ip, &irec);
> > +
> > +		if (irec.br_startblock == DELAYSTARTBLOCK) {
> > +			/* Free a delayed allocation. */
> > +			xfs_mod_fdblocks(ip->i_mount, irec.br_blockcount,
> > +					false);
> > +			ip->i_delayed_blks -= irec.br_blockcount;
> > +
> > +			/* Remove the mapping from the CoW fork. */
> > +			error = xfs_bunmapi_cow(ip, &irec);
> > +			if (error)
> > +				break;
> > +		} else if (irec.br_startblock == HOLESTARTBLOCK) {
> > +			/* empty */
> > +		} else {
> > +			xfs_trans_ijoin(*tpp, ip, 0);
> > +			xfs_defer_init(&dfops, &firstfsb);
> > +
> > +			xfs_bmap_add_free(ip->i_mount, &dfops,
> > +					irec.br_startblock, irec.br_blockcount,
> > +					NULL);
> > +
> > +			/* Update quota accounting */
> > +			xfs_trans_mod_dquot_byino(*tpp, ip, XFS_TRANS_DQ_BCOUNT,
> > +					-(long)irec.br_blockcount);
> > +
> > +			/* Roll the transaction */
> > +			error = xfs_defer_finish(tpp, &dfops, ip);
> > +			if (error) {
> > +				xfs_defer_cancel(&dfops);
> > +				break;
> > +			}
> > +
> > +			/* Remove the mapping from the CoW fork. */
> > +			error = xfs_bunmapi_cow(ip, &irec);
> > +			if (error)
> > +				break;
> > +		}
> > +
> > +		/* Roll on... */
> > +		count_fsb -= irec.br_startoff + irec.br_blockcount - offset_fsb;
> 
> Might be wise to safeguard against the extent being larger than the
> range (or just use offset_fsb and kill count_fsb)...

I think it's fine, since bmapi_read trims irec to fit the offset/count
you feed it, but OTOH it /does/ remove a few lines.

> > +		offset_fsb = irec.br_startoff + irec.br_blockcount;
> > +	}
> > +
> > +	return error;
> > +}
> > +
> > +/*
> > + * Cancel all pending CoW reservations for some byte range of an inode.
> > + */
> > +int
> > +xfs_reflink_cancel_cow_range(
> > +	struct xfs_inode	*ip,
> > +	xfs_off_t		offset,
> > +	xfs_off_t		count)
> > +{
> > +	struct xfs_trans	*tp;
> > +	xfs_fileoff_t		offset_fsb;
> > +	xfs_fileoff_t		end_fsb;
> > +	int			error;
> > +
> > +	trace_xfs_reflink_cancel_cow_range(ip, offset, count);
> > +
> > +	offset_fsb = XFS_B_TO_FSBT(ip->i_mount, offset);
> > +	if (count == NULLFILEOFF)
> > +		end_fsb = NULLFILEOFF;
> > +	else
> > +		end_fsb = XFS_B_TO_FSB(ip->i_mount, offset + count);
> > +
> > +	/* Start a rolling transaction to remove the mappings */
> > +	error = xfs_trans_alloc(ip->i_mount, &M_RES(ip->i_mount)->tr_write,
> > +			0, 0, 0, &tp);
> > +	if (error)
> > +		goto out;
> > +
> > +	xfs_ilock(ip, XFS_ILOCK_EXCL);
> > +	xfs_trans_ijoin(tp, ip, 0);
> > +
> > +	/* Scrape out the old CoW reservations */
> > +	error = xfs_reflink_cancel_cow_blocks(ip, &tp, offset_fsb, end_fsb);
> > +	if (error)
> > +		goto out_defer;
> > +
> > +	error = xfs_trans_commit(tp);
> > +
> > +	xfs_iunlock(ip, XFS_ILOCK_EXCL);
> > +	return error;
> > +
> > +out_defer:
> 
> out_cancel ?

Yeah.

> > +	xfs_trans_cancel(tp);
> > +	xfs_iunlock(ip, XFS_ILOCK_EXCL);
> > +out:
> > +	trace_xfs_reflink_cancel_cow_range_error(ip, error, _RET_IP_);
> > +	return error;
> > +}
> > +
> > +/*
> > + * Remap parts of a file's data fork after a successful CoW.
> > + */
> > +int
> > +xfs_reflink_end_cow(
> > +	struct xfs_inode		*ip,
> > +	xfs_off_t			offset,
> > +	xfs_off_t			count)
> > +{
> > +	struct xfs_bmbt_irec		irec;
> > +	struct xfs_bmbt_irec		uirec;
> > +	struct xfs_trans		*tp;
> > +	xfs_fileoff_t			offset_fsb;
> > +	xfs_fileoff_t			end_fsb;
> > +	xfs_filblks_t			count_fsb;
> > +	xfs_fsblock_t			firstfsb;
> > +	struct xfs_defer_ops		dfops;
> > +	int				error;
> > +	unsigned int			resblks;
> > +	xfs_filblks_t			ilen;
> > +	xfs_filblks_t			rlen;
> > +	int				nimaps;
> > +
> > +	trace_xfs_reflink_end_cow(ip, offset, count);
> > +
> > +	offset_fsb = XFS_B_TO_FSBT(ip->i_mount, offset);
> > +	end_fsb = XFS_B_TO_FSB(ip->i_mount, offset + count);
> > +	count_fsb = (xfs_filblks_t)(end_fsb - offset_fsb);
> > +
> > +	/* Start a rolling transaction to switch the mappings */
> > +	resblks = XFS_EXTENTADD_SPACE_RES(ip->i_mount, XFS_DATA_FORK);
> > +	error = xfs_trans_alloc(ip->i_mount, &M_RES(ip->i_mount)->tr_write,
> > +			resblks, 0, 0, &tp);
> > +	if (error)
> > +		goto out;
> 
> I forget the exact reason why we preallocate append transactions for I/O
> completion, but it would be nice if Dave or somebody could chime in on
> that to make sure we don't need to do something similar here (and for
> the cancel case).
> 
> > +
> > +	xfs_ilock(ip, XFS_ILOCK_EXCL);
> > +	xfs_trans_ijoin(tp, ip, 0);
> > +
> > +	/* Go find the old extent in the CoW fork. */
> > +	while (count_fsb) {
> > +		/* Read extent from the source file */
> > +		nimaps = 1;
> > +		error = xfs_bmapi_read(ip, offset_fsb, count_fsb, &irec,
> > +				&nimaps, XFS_BMAPI_COWFORK);
> > +		if (error)
> > +			goto out_cancel;
> > +		ASSERT(nimaps == 1);
> > +
> > +		ASSERT(irec.br_startblock != DELAYSTARTBLOCK);
> > +		trace_xfs_reflink_cow_remap(ip, &irec);
> > +
> > +		/*
> > +		 * We can have a hole in the CoW fork if part of a directio
> > +		 * write is CoW but part of it isn't.
> > +		 */
> > +		rlen = ilen = irec.br_blockcount;
> > +		if (irec.br_startblock == HOLESTARTBLOCK)
> > +			goto next_extent;
> > +
> > +		/* Unmap the old blocks in the data fork. */
> > +		while (rlen) {
> > +			xfs_defer_init(&dfops, &firstfsb);
> > +			error = __xfs_bunmapi(tp, ip, irec.br_startoff,
> > +					&rlen, 0, 1, &firstfsb, &dfops);
> > +			if (error)
> > +				goto out_defer;
> > +
> > +			/* Trim the extent to whatever got unmapped. */
> > +			uirec = irec;
> > +			xfs_trim_extent(&uirec, irec.br_startoff + rlen,
> > +					irec.br_blockcount - rlen);
> 
> We assign uirec = irec, then pass calculated values based on irec and
> rlen. How about xfs_trim_extent(&uirec, rlen)?
> 
> Also, it took me a while to grok that we "trim" the beginning of the
> extent because bunmapi works backwards. A comment would be appreciated
> here.  ;)

Ok.

> Brian
> 
> > +			irec.br_blockcount = rlen;
> > +			trace_xfs_reflink_cow_remap_piece(ip, &uirec);
> > +
> > +			/* Map the new blocks into the data fork. */
> > +			error = xfs_bmap_map_extent(tp->t_mountp, &dfops,
> > +					ip, XFS_DATA_FORK, &uirec);
> > +			if (error)
> > +				goto out_defer;
> > +
> > +			/* Remove the mapping from the CoW fork. */
> > +			error = xfs_bunmapi_cow(ip, &uirec);
> > +			if (error)
> > +				goto out_defer;
> > +
> > +			error = xfs_defer_finish(&tp, &dfops, ip);
> > +			if (error)
> > +				goto out_defer;
> > +		}
> > +
> > +next_extent:
> > +		/* Roll on... */
> > +		count_fsb -= irec.br_startoff + ilen - offset_fsb;
> > +		offset_fsb = irec.br_startoff + ilen;
> > +	}
> > +
> > +	error = xfs_trans_commit(tp);
> > +	xfs_iunlock(ip, XFS_ILOCK_EXCL);
> > +	if (error)
> > +		goto out;
> > +	return 0;
> > +
> > +out_defer:
> > +	xfs_defer_cancel(&dfops);
> > +out_cancel:
> > +	xfs_trans_cancel(tp);
> > +	xfs_iunlock(ip, XFS_ILOCK_EXCL);
> > +out:
> > +	trace_xfs_reflink_end_cow_error(ip, error, _RET_IP_);
> > +	return error;
> > +}
> > diff --git a/fs/xfs/xfs_reflink.h b/fs/xfs/xfs_reflink.h
> > index 11408c0..bffa4be 100644
> > --- a/fs/xfs/xfs_reflink.h
> > +++ b/fs/xfs/xfs_reflink.h
> > @@ -33,4 +33,12 @@ extern bool xfs_reflink_find_cow_mapping(struct xfs_inode *ip, xfs_off_t offset,
> >  extern int xfs_reflink_trim_irec_to_next_cow(struct xfs_inode *ip,
> >  		xfs_fileoff_t offset_fsb, struct xfs_bmbt_irec *imap);
> >  
> > +extern int xfs_reflink_cancel_cow_blocks(struct xfs_inode *ip,
> > +		struct xfs_trans **tpp, xfs_fileoff_t offset_fsb,
> > +		xfs_fileoff_t end_fsb);
> > +extern int xfs_reflink_cancel_cow_range(struct xfs_inode *ip, xfs_off_t offset,
> > +		xfs_off_t count);
> > +extern int xfs_reflink_end_cow(struct xfs_inode *ip, xfs_off_t offset,
> > +		xfs_off_t count);
> > +
> >  #endif /* __XFS_REFLINK_H */
> > 
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2016-10-05 21:22 UTC|newest]

Thread overview: 186+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-30  3:05 [PATCH v10 00/63] xfs: add reflink and dedupe support Darrick J. Wong
2016-09-30  3:05 ` [PATCH 01/63] vfs: support FS_XFLAG_COWEXTSIZE and get/set of CoW extent size hint Darrick J. Wong
2016-09-30  3:05 ` [PATCH 02/63] vfs: add a FALLOC_FL_UNSHARE mode to fallocate to unshare a range of blocks Darrick J. Wong
2016-09-30  7:08   ` Christoph Hellwig
2016-09-30  3:05 ` [PATCH 03/63] xfs: return an error when an inline directory is too small Darrick J. Wong
2016-09-30  3:06 ` [PATCH 04/63] xfs: define tracepoints for refcount btree activities Darrick J. Wong
2016-09-30  3:06 ` [PATCH 05/63] xfs: introduce refcount btree definitions Darrick J. Wong
2016-09-30  3:06 ` [PATCH 06/63] xfs: refcount btree add more reserved blocks Darrick J. Wong
2016-09-30  3:06 ` [PATCH 07/63] xfs: define the on-disk refcount btree format Darrick J. Wong
2016-09-30  3:06 ` [PATCH 08/63] xfs: add refcount btree support to growfs Darrick J. Wong
2016-09-30  3:06 ` [PATCH 09/63] xfs: account for the refcount btree in the alloc/free log reservation Darrick J. Wong
2016-09-30  3:06 ` [PATCH 10/63] xfs: add refcount btree operations Darrick J. Wong
2016-09-30  3:06 ` [PATCH 11/63] xfs: create refcount update intent log items Darrick J. Wong
2016-09-30  3:06 ` [PATCH 12/63] xfs: log refcount intent items Darrick J. Wong
2016-09-30  3:06 ` [PATCH 13/63] xfs: adjust refcount of an extent of blocks in refcount btree Darrick J. Wong
2016-09-30  7:11   ` Christoph Hellwig
2016-09-30 17:53     ` Darrick J. Wong
2016-09-30  3:07 ` [PATCH 14/63] xfs: connect refcount adjust functions to upper layers Darrick J. Wong
2016-09-30  7:13   ` Christoph Hellwig
2016-09-30 16:21   ` Brian Foster
2016-09-30 19:40     ` Darrick J. Wong
2016-09-30 20:11       ` Brian Foster
2016-09-30  3:07 ` [PATCH 15/63] xfs: adjust refcount when unmapping file blocks Darrick J. Wong
2016-09-30  7:14   ` Christoph Hellwig
2016-09-30  3:07 ` [PATCH 16/63] xfs: add refcount btree block detection to log recovery Darrick J. Wong
2016-09-30  7:15   ` Christoph Hellwig
2016-09-30  3:07 ` [PATCH 17/63] xfs: refcount btree requires more reserved space Darrick J. Wong
2016-09-30  7:15   ` Christoph Hellwig
2016-09-30 16:46   ` Brian Foster
2016-09-30 18:41     ` Darrick J. Wong
2016-09-30  3:07 ` [PATCH 18/63] xfs: introduce reflink utility functions Darrick J. Wong
2016-09-30  7:16   ` Christoph Hellwig
2016-09-30 19:22   ` Brian Foster
2016-09-30 19:50     ` Darrick J. Wong
2016-09-30  3:07 ` [PATCH 19/63] xfs: create bmbt update intent log items Darrick J. Wong
2016-09-30  7:24   ` Christoph Hellwig
2016-09-30 17:24     ` Darrick J. Wong
2016-09-30  3:07 ` [PATCH 20/63] xfs: log bmap intent items Darrick J. Wong
2016-09-30  7:26   ` Christoph Hellwig
2016-09-30 17:26     ` Darrick J. Wong
2016-09-30 19:22   ` Brian Foster
2016-09-30 19:52     ` Darrick J. Wong
2016-09-30  3:07 ` [PATCH 21/63] xfs: map an inode's offset to an exact physical block Darrick J. Wong
2016-09-30  7:31   ` Christoph Hellwig
2016-09-30 17:30     ` Darrick J. Wong
2016-10-03 19:03   ` Brian Foster
2016-10-04  0:11     ` Darrick J. Wong
2016-10-04 12:43       ` Brian Foster
2016-10-04 17:28         ` Darrick J. Wong
2016-09-30  3:08 ` [PATCH 22/63] xfs: pass bmapi flags through to bmap_del_extent Darrick J. Wong
2016-09-30  7:16   ` Christoph Hellwig
2016-09-30  3:08 ` [PATCH 23/63] xfs: implement deferred bmbt map/unmap operations Darrick J. Wong
2016-09-30  7:34   ` Christoph Hellwig
2016-09-30 17:38     ` Darrick J. Wong
2016-09-30 20:34       ` Roger Willcocks
2016-09-30 21:08         ` Darrick J. Wong
2016-09-30  3:08 ` [PATCH 24/63] xfs: when replaying bmap operations, don't let unlinked inodes get reaped Darrick J. Wong
2016-09-30  7:35   ` Christoph Hellwig
2016-10-03 19:04   ` Brian Foster
2016-10-04  0:29     ` Darrick J. Wong
2016-10-04 12:44       ` Brian Foster
2016-10-04 19:07         ` Dave Chinner
2016-10-04 21:44           ` Darrick J. Wong
2016-09-30  3:08 ` [PATCH 25/63] xfs: return work remaining at the end of a bunmapi operation Darrick J. Wong
2016-09-30  7:19   ` Christoph Hellwig
2016-10-03 19:04   ` Brian Foster
2016-10-04  0:30     ` Darrick J. Wong
2016-10-04 12:44       ` Brian Foster
2016-09-30  3:08 ` [PATCH 26/63] xfs: define tracepoints for reflink activities Darrick J. Wong
2016-09-30  7:20   ` Christoph Hellwig
2016-09-30  3:08 ` [PATCH 27/63] xfs: add reflink feature flag to geometry Darrick J. Wong
2016-09-30  7:20   ` Christoph Hellwig
2016-09-30  3:08 ` [PATCH 28/63] xfs: don't allow reflinked dir/dev/fifo/socket/pipe files Darrick J. Wong
2016-09-30  7:20   ` Christoph Hellwig
2016-09-30  3:08 ` [PATCH 29/63] xfs: introduce the CoW fork Darrick J. Wong
2016-09-30  7:39   ` Christoph Hellwig
2016-09-30 17:48     ` Darrick J. Wong
2016-09-30  3:08 ` [PATCH 30/63] xfs: support bmapping delalloc extents in " Darrick J. Wong
2016-09-30  7:42   ` Christoph Hellwig
2016-09-30  3:09 ` [PATCH 31/63] xfs: create delalloc extents in " Darrick J. Wong
2016-10-04 16:38   ` Brian Foster
2016-10-04 17:39     ` Darrick J. Wong
2016-10-04 18:38       ` Brian Foster
2016-09-30  3:09 ` [PATCH 32/63] xfs: support allocating delayed " Darrick J. Wong
2016-09-30  7:42   ` Christoph Hellwig
2016-10-04 16:38   ` Brian Foster
2016-09-30  3:09 ` [PATCH 33/63] xfs: allocate " Darrick J. Wong
2016-10-04 16:38   ` Brian Foster
2016-10-04 18:26     ` Darrick J. Wong
2016-10-04 18:39       ` Brian Foster
2016-09-30  3:09 ` [PATCH 34/63] xfs: support removing extents from " Darrick J. Wong
2016-09-30  7:46   ` Christoph Hellwig
2016-09-30 18:00     ` Darrick J. Wong
2016-10-05 18:26   ` Brian Foster
2016-09-30  3:09 ` [PATCH 35/63] xfs: move mappings from cow fork to data fork after copy-write Darrick J. Wong
2016-10-05 18:26   ` Brian Foster
2016-10-05 21:22     ` Darrick J. Wong [this message]
2016-09-30  3:09 ` [PATCH 36/63] xfs: report shared extent mappings to userspace correctly Darrick J. Wong
2016-09-30  3:09 ` [PATCH 37/63] xfs: implement CoW for directio writes Darrick J. Wong
2016-10-05 18:27   ` Brian Foster
2016-10-05 20:55     ` Darrick J. Wong
2016-10-06 12:20       ` Brian Foster
2016-10-07  1:02         ` Darrick J. Wong
2016-10-07  6:17           ` Christoph Hellwig
2016-10-07 12:16             ` Brian Foster
2016-10-07 12:15           ` Brian Foster
2016-10-13 18:14             ` Darrick J. Wong
2016-10-13 19:01               ` Brian Foster
2016-09-30  3:09 ` [PATCH 38/63] xfs: cancel CoW reservations and clear inode reflink flag when freeing blocks Darrick J. Wong
2016-09-30  7:47   ` Christoph Hellwig
2016-10-06 16:44   ` Brian Foster
2016-10-07  0:40     ` Darrick J. Wong
2016-09-30  3:09 ` [PATCH 39/63] xfs: cancel pending CoW reservations when destroying inodes Darrick J. Wong
2016-09-30  7:47   ` Christoph Hellwig
2016-10-06 16:44   ` Brian Foster
2016-10-07  0:42     ` Darrick J. Wong
2016-09-30  3:09 ` [PATCH 40/63] xfs: store in-progress CoW allocations in the refcount btree Darrick J. Wong
2016-09-30  7:49   ` Christoph Hellwig
2016-10-07 18:04   ` Brian Foster
2016-10-07 19:18     ` Darrick J. Wong
2016-09-30  3:10 ` [PATCH 41/63] xfs: reflink extents from one file to another Darrick J. Wong
2016-09-30  7:50   ` Christoph Hellwig
2016-10-07 18:04   ` Brian Foster
2016-10-07 19:44     ` Darrick J. Wong
2016-10-07 20:48       ` Brian Foster
2016-10-07 21:41         ` Darrick J. Wong
2016-10-10 13:17           ` Brian Foster
2016-09-30  3:10 ` [PATCH 42/63] xfs: add clone file and clone range vfs functions Darrick J. Wong
2016-09-30  7:51   ` Christoph Hellwig
2016-09-30 18:04     ` Darrick J. Wong
2016-10-07 18:04   ` Brian Foster
2016-10-07 20:31     ` Darrick J. Wong
2016-09-30  3:10 ` [PATCH 43/63] xfs: add dedupe range vfs function Darrick J. Wong
2016-09-30  7:53   ` Christoph Hellwig
2016-09-30  3:10 ` [PATCH 44/63] xfs: teach get_bmapx about shared extents and the CoW fork Darrick J. Wong
2016-09-30  7:53   ` Christoph Hellwig
2016-09-30  3:10 ` [PATCH 45/63] xfs: swap inode reflink flags when swapping inode extents Darrick J. Wong
2016-09-30  7:54   ` Christoph Hellwig
2016-09-30  3:10 ` [PATCH 46/63] xfs: unshare a range of blocks via fallocate Darrick J. Wong
2016-09-30  7:54   ` Christoph Hellwig
2016-10-07 18:05   ` Brian Foster
2016-10-07 20:26     ` Darrick J. Wong
2016-10-07 20:58       ` Brian Foster
2016-10-07 21:15         ` Darrick J. Wong
2016-10-07 22:25           ` Dave Chinner
2016-10-10 17:05             ` Darrick J. Wong
2016-09-30  3:10 ` [PATCH 47/63] xfs: create a separate cow extent size hint for the allocator Darrick J. Wong
2016-09-30  7:55   ` Christoph Hellwig
2016-09-30  3:10 ` [PATCH 48/63] xfs: preallocate blocks for worst-case btree expansion Darrick J. Wong
2016-09-30  8:19   ` Christoph Hellwig
2016-10-12 18:44   ` Brian Foster
2016-10-12 20:52     ` Darrick J. Wong
2016-10-12 22:42       ` Brian Foster
2016-12-06 19:32         ` Darrick J. Wong
2016-12-07 11:53           ` Brian Foster
2016-12-08  6:14             ` Darrick J. Wong
2016-09-30  3:10 ` [PATCH 49/63] xfs: don't allow reflink when the AG is low on space Darrick J. Wong
2016-09-30  8:19   ` Christoph Hellwig
2016-09-30  3:11 ` [PATCH 50/63] xfs: try other AGs to allocate a BMBT block Darrick J. Wong
2016-09-30  8:20   ` Christoph Hellwig
2016-09-30  3:11 ` [PATCH 51/63] xfs: garbage collect old cowextsz reservations Darrick J. Wong
2016-09-30  8:23   ` Christoph Hellwig
2016-09-30  3:11 ` [PATCH 52/63] xfs: increase log reservations for reflink Darrick J. Wong
2016-09-30  8:23   ` Christoph Hellwig
2016-09-30  3:11 ` [PATCH 53/63] xfs: add shared rmap map/unmap/convert log item types Darrick J. Wong
2016-09-30  8:24   ` Christoph Hellwig
2016-09-30  3:11 ` [PATCH 54/63] xfs: use interval query for rmap alloc operations on shared files Darrick J. Wong
2016-09-30  8:24   ` Christoph Hellwig
2016-09-30  3:11 ` [PATCH 55/63] xfs: convert unwritten status of reverse mappings for " Darrick J. Wong
2016-09-30  8:25   ` Christoph Hellwig
2016-09-30  3:11 ` [PATCH 56/63] xfs: set a default CoW extent size of 32 blocks Darrick J. Wong
2016-09-30  8:25   ` Christoph Hellwig
2016-09-30  3:11 ` [PATCH 57/63] xfs: check for invalid inode reflink flags Darrick J. Wong
2016-09-30  8:26   ` Christoph Hellwig
2016-09-30  3:11 ` [PATCH 58/63] xfs: don't mix reflink and DAX mode for now Darrick J. Wong
2016-09-30  8:26   ` Christoph Hellwig
2016-09-30  3:12 ` [PATCH 59/63] xfs: simulate per-AG reservations being critically low Darrick J. Wong
2016-09-30  8:27   ` Christoph Hellwig
2016-09-30  3:12 ` [PATCH 60/63] xfs: recognize the reflink feature bit Darrick J. Wong
2016-09-30  8:27   ` Christoph Hellwig
2016-09-30  3:12 ` [PATCH 61/63] xfs: various swapext cleanups Darrick J. Wong
2016-09-30  8:28   ` Christoph Hellwig
2016-09-30  3:12 ` [PATCH 62/63] xfs: refactor swapext code Darrick J. Wong
2016-09-30  8:28   ` Christoph Hellwig
2016-09-30  3:12 ` [PATCH 63/63] xfs: implement swapext for rmap filesystems Darrick J. Wong
2016-09-30  9:00 ` [PATCH v10 00/63] xfs: add reflink and dedupe support Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161005212223.GB3992@birch.djwong.org \
    --to=darrick.wong@oracle.com \
    --cc=bfoster@redhat.com \
    --cc=david@fromorbit.com \
    --cc=hch@lst.de \
    --cc=linux-xfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).