diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-22 12:40:53 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 12:40:53 -0800 |
commit | fb0793f206701a68f8588a09bf32f7cf44878ea3 (patch) | |
tree | a1e243344c2e871c6bbdc1f7547f7094c906dab3 /fs | |
parent | 8b8ada973cacff338a0e817a97dd0afa301798c0 (diff) | |
download | linux-stable-fb0793f206701a68f8588a09bf32f7cf44878ea3.tar.gz linux-stable-fb0793f206701a68f8588a09bf32f7cf44878ea3.tar.bz2 linux-stable-fb0793f206701a68f8588a09bf32f7cf44878ea3.zip |
xfs: open code xfs_btree_check_lptr in xfs_bmap_btree_to_extents
xfs_bmap_btree_to_extents always passes a level of 1 to
xfs_btree_check_lptr, thus making the level check redundant.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 6a374a6e8586..5a39fdb5178b 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c @@ -568,7 +568,7 @@ xfs_bmap_btree_to_extents( pp = XFS_BMAP_BROOT_PTR_ADDR(mp, rblock, 1, ifp->if_broot_bytes); cbno = be64_to_cpu(*pp); #ifdef DEBUG - if (XFS_IS_CORRUPT(cur->bc_mp, !xfs_btree_check_lptr(cur, cbno, 1))) { + if (XFS_IS_CORRUPT(cur->bc_mp, !xfs_verify_fsbno(mp, cbno))) { xfs_btree_mark_sick(cur); return -EFSCORRUPTED; } |