xfs: refactor name/value iovec validation in xlog_recover_attri_commit_pass2
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:47:33 +0000 (09:47 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 14:46:54 +0000 (07:46 -0700)
commitffdcc3b8eb4d5ab263d04b9c4b2c6072c7b3c1e9
tree9b66b8318774c787428cb14de237ae87127be9e4
parent50855427c25426afbd98e9b4b00cb4a383614d88
xfs: refactor name/value iovec validation in xlog_recover_attri_commit_pass2

Hoist the code that checks the attr name and value iovecs into separate
helpers so that we can add more callsites for the new parent pointer
attr intent items.

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