summaryrefslogtreecommitdiffstats
path: root/block/t10-pi.c
diff options
context:
space:
mode:
authorIra Weiny <ira.weiny@intel.com>2020-04-30 16:41:36 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2020-05-30 05:13:20 +0200
commitb5df62843273f914c2ac7be8e33931a414df15d7 (patch)
treeeead4f613244972462a6115c92dd041e465dc8e1 /block/t10-pi.c
parentfs/xfs: Create function xfs_inode_should_enable_dax() (diff)
downloadlinux-b5df62843273f914c2ac7be8e33931a414df15d7.tar.xz
linux-b5df62843273f914c2ac7be8e33931a414df15d7.zip
fs/xfs: Combine xfs_diflags_to_linux() and xfs_diflags_to_iflags()
The functionality in xfs_diflags_to_linux() and xfs_diflags_to_iflags() are nearly identical. The only difference is that *_to_linux() is called after inode setup and disallows changing the DAX flag. Combining them can be done with a flag which indicates if this is the initial setup to allow the DAX flag to be properly set only at init time. So remove xfs_diflags_to_linux() and call the modified xfs_diflags_to_iflags() directly. While we are here simplify xfs_diflags_to_iflags() to take struct xfs_inode and use xfs_ip2xflags() to ensure future diflags are included correctly. Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'block/t10-pi.c')
0 files changed, 0 insertions, 0 deletions