xfs: add a bi_entry helper
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:44:19 +0000 (12:44 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:44:19 +0000 (12:44 -0800)
commitde47e4c9ad2de1a9e3ce9a460b49a77bee1c3c9b
tree9138c8a3f047a26ab9d103dc5c50436a87c99755
parent372fe0b8ce4f1c22ec721e28a564449343b12a7e
xfs: add a bi_entry helper

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