xfs: fix the dax supported check in xfs_ioctl_setattr_dax_invalidate
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Aug 2019 15:56:55 +0000 (08:56 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 31 Aug 2019 05:43:58 +0000 (22:43 -0700)
commitadcb0ca2330b1d88533e70026ce3f9cc5e2253b6
tree626e50ab22c8325f3709e7dd87344ff70f625de6
parent40144e49ff84c3bd6bd091b58115257670be8803
xfs: fix the dax supported check in xfs_ioctl_setattr_dax_invalidate

Setting the DAX flag on the directory of a file system that is not on a
DAX capable device makes as little sense as setting it on a regular file
on the same file system.

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>
fs/xfs/xfs_ioctl.c