From: Christoph Hellwig <hch@lst.de>
To: darrick.wong@oracle.com
Cc: linux-xfs@vger.kernel.org
Subject: [PATCH 1/2] xfs: allow delayed allocations for COW files
Date: Sat, 24 Sep 2016 20:22:34 -0700 [thread overview]
Message-ID: <1474773755-26796-1-git-send-email-hch@lst.de> (raw)
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
next reply other threads:[~2016-09-25 3:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-25 3:22 Christoph Hellwig [this message]
2016-09-25 3:22 ` [PATCH 2/2] xfs: rewrite the COW allow path Christoph Hellwig
2016-09-27 4:35 ` Darrick J. Wong
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=1474773755-26796-1-git-send-email-hch@lst.de \
--to=hch@lst.de \
--cc=darrick.wong@oracle.com \
--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).