fs/xfs: Update xfs_ioctl_setattr_dax_invalidate()
authorIra Weiny <ira.weiny@intel.com>
Thu, 30 Apr 2020 14:41:38 +0000 (07:41 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 30 May 2020 03:13:20 +0000 (20:13 -0700)
commite4f9ba20d3b8c2b86ec71f326882e1a3c4e47953
treeed75890460d0c27f3fba6011d737e3c00e1a390d
parentb5df62843273f914c2ac7be8e33931a414df15d7
fs/xfs: Update xfs_ioctl_setattr_dax_invalidate()

Because of the separation of FS_XFLAG_DAX from S_DAX and the delayed
setting of S_DAX, data invalidation no longer needs to happen when
FS_XFLAG_DAX is changed.

Change xfs_ioctl_setattr_dax_invalidate() to be
xfs_ioctl_dax_check_set_cache() and alter the code to reflect the new
functionality.

Furthermore, we no longer need the locking so we remove the join_flags
logic.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_ioctl.c