xfs: don't forbid setting dax flag on directories if device doesn't dax
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 31 May 2018 22:07:47 +0000 (15:07 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 4 Jun 2018 21:45:29 +0000 (14:45 -0700)
commitaaacdd257fd038a7d265fe4dc30d71fb1bfcadda
treee42f466a3e2d46aacc137813ec113e90d58f85df
parent9f96cc958e8ae9864e6d597a5f3e80b5fca35ae4
xfs: don't forbid setting dax flag on directories if device doesn't dax

On a directory, the DAX flag is merely a hint that files created in the
directory should have the DAX flag set at creation time.  We don't care
if the underlying device supports DAX or not because directory metadata
are always cached in DRAM.  We don't care if new files get the flag even
if the device doesn't support DAX because we always check for DAX
support before setting the VFS flag (S_DAX).

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_ioctl.c