xfs: check shortform attr entry flags specifically
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 16:47:28 +0000 (09:47 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 23 Apr 2024 14:46:53 +0000 (07:46 -0700)
commit309dc9cbbb4379241bcc9b5a6a42c04279a0e5a7
tree182056856cd58e3ec275ab2609d62c349e386399
parentf660ec8eaeb50d0317c29601aacabdb15e5f2203
xfs: check shortform attr entry flags specifically

While reviewing flag checking in the attr scrub functions, we noticed
that the shortform attr scanner didn't catch entries that have the LOCAL
or INCOMPLETE bits set.  Neither of these flags can ever be set on a
shortform attr, so we need to check this narrower set of valid flags.

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