]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit784c38c91edec4ca05eeb3225ab977f27093fe99
treeed75890460d0c27f3fba6011d737e3c00e1a390d
parentca3ba72949e1616a2e20d8b4c725a4450535fdf0
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