summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-08-30 09:23:01 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2017-09-01 13:08:26 -0700
commit742d84290739ae908f1b61b7d17ea382c8c0073a (patch)
tree5a145139af777f8cbe1b58611f911f2384806238 /fs/xfs
parent8bfadd8d03b7ff8fe70be3d3a6980e6a20cb5a92 (diff)
downloadop-kernel-dev-742d84290739ae908f1b61b7d17ea382c8c0073a.zip
op-kernel-dev-742d84290739ae908f1b61b7d17ea382c8c0073a.tar.gz
xfs: disable per-inode DAX flag
Currently flag switching can be used to easily crash the kernel. Disable the per-inode DAX flag until that is sorted out. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_ioctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c
index 9c0c7a9..06ca244 100644
--- a/fs/xfs/xfs_ioctl.c
+++ b/fs/xfs/xfs_ioctl.c
@@ -1008,11 +1008,12 @@ xfs_diflags_to_linux(
inode->i_flags |= S_NOATIME;
else
inode->i_flags &= ~S_NOATIME;
+#if 0 /* disabled until the flag switching races are sorted out */
if (xflags & FS_XFLAG_DAX)
inode->i_flags |= S_DAX;
else
inode->i_flags &= ~S_DAX;
-
+#endif
}
static int
OpenPOWER on IntegriCloud