xfs: refactor name/length checks in xfs_attri_validate
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)
commit50855427c25426afbd98e9b4b00cb4a383614d88
tree6c6ad41add943d01559aa80c9a156325e6481466
parentc07f018bc094c5f30cb827ec9f11a23ace3435ec
xfs: refactor name/length checks in xfs_attri_validate

Move the name and length checks into the attr op switch statement so
that we can perform more specific checks of the value length.  Over the
next few patches we're going to add new attr op flags with different
validation requirements.

While we're at it, remove the incorrect comment.

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