diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-04-11 19:00:29 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2023-04-11 19:00:29 -0700 |
commit | ee366fe4f519f0739a2c62cf998f58932e77c6a9 (patch) | |
tree | e372ba887947c264ead691d6983d459078b7988d | |
parent | c12ad41468a5f4112b98566dcb1ee9096579106a (diff) | |
download | linux-stable-ee366fe4f519f0739a2c62cf998f58932e77c6a9.tar.gz linux-stable-ee366fe4f519f0739a2c62cf998f58932e77c6a9.tar.bz2 linux-stable-ee366fe4f519f0739a2c62cf998f58932e77c6a9.zip |
xfs: don't shadow @leaf in xchk_xattr_block
Don't shadow the leaf variable here, because it's misleading to have one
place in the codebase where two variables with different types have the
same name.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
-rw-r--r-- | fs/xfs/scrub/attr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/scrub/attr.c b/fs/xfs/scrub/attr.c index f6def9c864ab..6bb0256d0689 100644 --- a/fs/xfs/scrub/attr.c +++ b/fs/xfs/scrub/attr.c @@ -342,10 +342,10 @@ xchk_xattr_block( /* Check all the padding. */ if (xfs_has_crc(ds->sc->mp)) { - struct xfs_attr3_leafblock *leaf = bp->b_addr; + struct xfs_attr3_leafblock *leaf3 = bp->b_addr; - if (leaf->hdr.pad1 != 0 || leaf->hdr.pad2 != 0 || - leaf->hdr.info.hdr.pad != 0) + if (leaf3->hdr.pad1 != 0 || leaf3->hdr.pad2 != 0 || + leaf3->hdr.info.hdr.pad != 0) xchk_da_set_corrupt(ds, level); } else { if (leaf->hdr.pad1 != 0 || leaf->hdr.info.pad != 0) |