]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: btree convert xfs_btree_init_block to xfs_btree_init_buf calls
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 17:00:59 +0000 (10:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:37 +0000 (11:37 -0700)
Source kernel commit: 7771f7030007e3faa6906864d01b504b590e1ca2

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>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
libxfs/xfs_btree.c

index 541f2336c4d5ba376d88fb8a8a73c2191dbe7bb9..372a521c1af8dac47858fe710e2e1c361c6a4191 100644 (file)
@@ -1225,8 +1225,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);
 }
 
 /*