]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: detect empty attr leaf blocks in xfs_attr3_leaf_verify
authorDave Chinner <dchinner@redhat.com>
Thu, 12 May 2022 05:12:57 +0000 (15:12 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 12 May 2022 05:12:57 +0000 (15:12 +1000)
commitd55e0e8e9bdea358166d5eb3a420e527b24953f5
treeef2d9c616721c46bf1e67aee1f8dbb28932c5df2
parent900186e73a7a427f240d2a52ab9062d5c801b871
xfs: detect empty attr leaf blocks in xfs_attr3_leaf_verify

xfs_repair flags these as a corruption error, so the verifier should
catch software bugs that result in empty leaf blocks being written
to disk, too.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_attr_leaf.c