mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
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>
This commit is contained in:
parent
c12ad41468
commit
ee366fe4f5
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue