| To: | david@xxxxxxxxxxxxx, darrick.wong@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH 42/71] xfs: don't mix reflink and DAX mode for now |
| From: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
| Date: | Thu, 25 Aug 2016 16:51:04 -0700 |
| Cc: | linux-xfs@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <147216879156.4420.2446767701729565218.stgit@xxxxxxxxxxxxxxxx> |
| References: | <147216879156.4420.2446767701729565218.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | StGit/0.17.1-dirty |
Since we don't have a strategy for handling both DAX and reflink,
for now we'll just prohibit both being set at the same time.
Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
---
libxfs/xfs_inode_buf.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libxfs/xfs_inode_buf.c b/libxfs/xfs_inode_buf.c
index 2966d54..3f2049b 100644
--- a/libxfs/xfs_inode_buf.c
+++ b/libxfs/xfs_inode_buf.c
@@ -416,6 +416,10 @@ xfs_dinode_verify(
if ((flags2 & XFS_DIFLAG2_REFLINK) && (flags & XFS_DIFLAG_REALTIME))
return false;
+ /* don't let reflink and dax mix */
+ if ((flags2 & XFS_DIFLAG2_REFLINK) && (flags2 & XFS_DIFLAG2_DAX))
+ return false;
+
return true;
}
|
| Previous by Date: | [PATCH 41/71] xfs: don't allow realtime and reflinked files to mix, Darrick J. Wong |
|---|---|
| Next by Date: | [PATCH 43/71] xfs: recognize the reflink feature bit, Darrick J. Wong |
| Previous by Thread: | [PATCH 41/71] xfs: don't allow realtime and reflinked files to mix, Darrick J. Wong |
| Next by Thread: | [PATCH 43/71] xfs: recognize the reflink feature bit, Darrick J. Wong |
| Indexes: | [Date] [Thread] [Top] [All Lists] |