]> git.ipfire.org Git - people/ms/linux.git/blobdiff - fs/xfs/libxfs/xfs_attr.h
Merge branch 'for-6.0/dax' into libnvdimm-fixes
[people/ms/linux.git] / fs / xfs / libxfs / xfs_attr.h
index dfb47fa63c6d52785f0566056ad98435efc57b53..81be9b3e40047b928707e620820616407309a197 100644 (file)
@@ -560,9 +560,9 @@ static inline bool
 xfs_attr_is_shortform(
        struct xfs_inode    *ip)
 {
-       return ip->i_afp->if_format == XFS_DINODE_FMT_LOCAL ||
-              (ip->i_afp->if_format == XFS_DINODE_FMT_EXTENTS &&
-               ip->i_afp->if_nextents == 0);
+       return ip->i_af.if_format == XFS_DINODE_FMT_LOCAL ||
+              (ip->i_af.if_format == XFS_DINODE_FMT_EXTENTS &&
+               ip->i_af.if_nextents == 0);
 }
 
 static inline enum xfs_delattr_state
@@ -573,10 +573,10 @@ xfs_attr_init_add_state(struct xfs_da_args *args)
         * next state, the attribute fork may be null. This can occur only occur
         * on a pure remove, but we grab the next state before we check if a
         * replace operation is being performed. If we are called from any other
-        * context, i_afp is guaranteed to exist. Hence if the attr fork is
+        * context, i_af is guaranteed to exist. Hence if the attr fork is
         * null, we were called from a pure remove operation and so we are done.
         */
-       if (!args->dp->i_afp)
+       if (!xfs_inode_has_attr_fork(args->dp))
                return XFS_DAS_DONE;
 
        args->op_flags |= XFS_DA_OP_ADDNAME;