]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: add a ci_entry helper
authorDarrick J. Wong <djwong@kernel.org>
Tue, 2 Jul 2024 18:23:09 +0000 (11:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 2 Jul 2024 18:37:06 +0000 (11:37 -0700)
commit0e9254861f980bd60a58b7c2b57ba0414c038409
treea47e049ed3814216d405a09c208716e9236a04a0
parente69682e5a12d1ea7fd3f3b8243a506228665ee79
xfs: add a ci_entry helper

Add a helper to translate from the item list head to the
refcount_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_refcount_item.c