mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
xfs: don't allow DAX on reflink filesystems
Now that reflink is no longer experimental, reject attempts to mount with DAX until that whole mess gets sorted out. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Bill O'Donnell <[email protected]> Reviewed-by: Dave Chinner <[email protected]>
This commit is contained in:
parent
494370ccaa
commit
b6e03c10bf
1 changed files with 4 additions and 1 deletions
|
|
@ -1666,9 +1666,12 @@ xfs_fs_fill_super(
|
|||
"DAX unsupported by block device. Turning off DAX.");
|
||||
mp->m_flags &= ~XFS_MOUNT_DAX;
|
||||
}
|
||||
if (xfs_sb_version_hasreflink(&mp->m_sb))
|
||||
if (xfs_sb_version_hasreflink(&mp->m_sb)) {
|
||||
xfs_alert(mp,
|
||||
"DAX and reflink cannot be used together!");
|
||||
error = -EINVAL;
|
||||
goto out_filestream_unmount;
|
||||
}
|
||||
}
|
||||
|
||||
if (mp->m_flags & XFS_MOUNT_DISCARD) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue