From: Darrick J. Wong Date: Sat, 14 Mar 2020 03:00:39 +0000 (-0400) Subject: xfs: streamline xfs_attr3_leaf_inactive X-Git-Tag: v5.6.0-rc0~16 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=30a4e0f9ce8286adad56d41ab7025945f698b3b0;p=thirdparty%2Fxfsprogs-dev.git xfs: streamline xfs_attr3_leaf_inactive Source kernel commit: 0bb9d159bd018b271e783d3b2d3bc82fa0727321 Now that we know we don't have to take a transaction to stale the incore buffers for a remote value, get rid of the unnecessary memory allocation in the leaf walker and call the rmt_stale function directly. Flatten the loop while we're at it. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_attr_leaf.h b/libxfs/xfs_attr_leaf.h index f4a188e28..73615b1dd 100644 --- a/libxfs/xfs_attr_leaf.h +++ b/libxfs/xfs_attr_leaf.h @@ -39,15 +39,6 @@ struct xfs_attr3_icleaf_hdr { } freemap[XFS_ATTR_LEAF_MAPSIZE]; }; -/* - * Used to keep a list of "remote value" extents when unlinking an inode. - */ -typedef struct xfs_attr_inactive_list { - xfs_dablk_t valueblk; /* block number of value bytes */ - int valuelen; /* number of bytes in value */ -} xfs_attr_inactive_list_t; - - /*======================================================================== * Function prototypes for the kernel. *========================================================================*/