xfs_repair: don't fail on INCOMPLETE attrs in leaf blocks
While trying to fix problems in generic/753, I noticed test failures on
account of xfs_repair:
attribute entry #4 in attr block 0, inode 131 is INCOMPLETE
problem with attribute contents in inode 131
would clear attr fork
bad nblocks 4 for inode 131, would reset to 0
bad anextents 1 for inode 131, would reset to 0
Looking at the dumped filesystem, inode 131 is a linked file, and the
"incomplete" xattr was clearly part of an xfs_attr_set operation that
failed midway through because the induced log shutdown prevented xfs
from finishing the creation of a remote xattr. This kind of thing is
expected, but instead xfs_repair deletes the entire attr fork!
It's far too drastic to delete every xattr because doing that destroys
things like security labels. The kernel won't show incomplete attrs so
it's not a big deal to leave them attached to the file. Note that
xfs_scrub can fix such things.
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>