xfs: add a xattr_entry helper
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:44:22 +0000 (12:44 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:44:22 +0000 (12:44 -0800)
commitc75f1a2c154979287ee12c336e2b8c3122832bf7
treed6abf1ed6743e28b73e94a15d4c6e0cb37d065ea
parent80284115854e60686b2e0183b31bb303ae69aa8c
xfs: add a xattr_entry helper

Add a helper to translate from the item list head to the attr_intent
item structure and use it so shorten assignments and avoid the need for
extra local variables.

Inspired-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_attr_item.c