xfs: remove XFS_BUF_TO_SBP
Just dereference bp->b_addr directly and make the code a little simpler and more clear. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:

committed by
Darrick J. Wong

parent
9798f615ad
commit
3e6e8afd3a
@@ -92,7 +92,7 @@ xchk_superblock(
|
||||
if (!xchk_process_error(sc, agno, XFS_SB_BLOCK(mp), &error))
|
||||
return error;
|
||||
|
||||
sb = XFS_BUF_TO_SBP(bp);
|
||||
sb = bp->b_addr;
|
||||
|
||||
/*
|
||||
* Verify the geometries match. Fields that are permanently
|
||||
|
Reference in New Issue
Block a user