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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user