diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2016-10-03 18:11:50 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2016-10-06 01:26:31 +0200 |
commit | 4f435ebe7d0422af61cdcddbbcc659888645a1e1 (patch) | |
tree | 49f6833f8b5b9e71c2df1b540fcbe933dfcd7087 /fs/xfs/xfs_iops.c | |
parent | xfs: check for invalid inode reflink flags (diff) | |
download | linux-4f435ebe7d0422af61cdcddbbcc659888645a1e1.tar.xz linux-4f435ebe7d0422af61cdcddbbcc659888645a1e1.zip |
xfs: don't mix reflink and DAX mode for now
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@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_iops.c')
-rw-r--r-- | fs/xfs/xfs_iops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index b24c3102fa93..5945b64f77cc 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c @@ -1144,6 +1144,7 @@ xfs_diflags_to_iflags( inode->i_flags |= S_NOATIME; if (S_ISREG(inode->i_mode) && ip->i_mount->m_sb.sb_blocksize == PAGE_SIZE && + !xfs_is_reflink_inode(ip) && (ip->i_mount->m_flags & XFS_MOUNT_DAX || ip->i_d.di_flags2 & XFS_DIFLAG2_DAX)) inode->i_flags |= S_DAX; |