]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xfs: btree convert xfs_btree_init_block to xfs_btree_init_buf calls
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:35:18 +0000 (12:35 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:35:18 +0000 (12:35 -0800)
Convert any place we call xfs_btree_init_block with a buffer to use the
_init_buf function.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_btree.c

index 29abac7b3e0392a0fb9578cac85b517f6fb56f0e..f1db5118dbaa77c62de456f88c08fe66661d65ef 100644 (file)
@@ -1228,8 +1228,7 @@ xfs_btree_init_block_cur(
        else
                owner = cur->bc_ag.pag->pag_agno;
 
-       xfs_btree_init_block(cur->bc_mp, XFS_BUF_TO_BLOCK(bp), cur->bc_ops,
-                       xfs_buf_daddr(bp), level, numrecs, owner);
+       xfs_btree_init_buf(cur->bc_mp, bp, cur->bc_ops, level, numrecs, owner);
 }
 
 /*