linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] xfs: allow delayed allocations for COW files
@ 2016-09-25  3:22 Christoph Hellwig
  2016-09-25  3:22 ` [PATCH 2/2] xfs: rewrite the COW allow path Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2016-09-25  3:22 UTC (permalink / raw)
  To: darrick.wong; +Cc: linux-xfs

After we reserved blocks in the COW path we should continue down the normal
iomap_begin path and not exlude the delalloc case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 fs/xfs/xfs_iomap.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c
index dc8895c..5afbfa5 100644
--- a/fs/xfs/xfs_iomap.c
+++ b/fs/xfs/xfs_iomap.c
@@ -1022,7 +1022,9 @@ xfs_file_iomap_begin(
 		xfs_iunlock(ip, XFS_ILOCK_EXCL);
 		if (error)
 			return error;
-	} else if ((flags & IOMAP_WRITE) && !IS_DAX(inode) &&
+	}
+
+	if ((flags & IOMAP_WRITE) && !IS_DAX(inode) &&
 		   !xfs_get_extsz_hint(ip)) {
 		/* Reserve delalloc blocks for regular writeback. */
 		return xfs_file_iomap_begin_delay(inode, offset, length, flags,
-- 
2.1.4


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

end of thread, other threads:[~2016-09-27  4:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-25  3:22 [PATCH 1/2] xfs: allow delayed allocations for COW files Christoph Hellwig
2016-09-25  3:22 ` [PATCH 2/2] xfs: rewrite the COW allow path Christoph Hellwig
2016-09-27  4:35   ` Darrick J. Wong

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