xfs: rename btree block/buffer init functions
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:35:17 +0000 (12:35 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:35:17 +0000 (12:35 -0800)
Rename xfs_btree_init_block_int to xfs_btree_init_block, and
xfs_btree_init_block to xfs_btree_init_buf so that the name suggests the
type that caller are supposed to pass in.

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

index b7366832cb0e0a15f3aa9f32c34ca5304d709140..446733893764911f5f359aff810cbbe401e88afe 100644 (file)
@@ -492,7 +492,7 @@ xfs_btroot_init(
        struct xfs_buf          *bp,
        struct aghdr_init_data  *id)
 {
-       xfs_btree_init_block(mp, bp, id->bc_ops, 0, 0, id->agno);
+       xfs_btree_init_buf(mp, bp, id->bc_ops, 0, 0, id->agno);
 }
 
 /* Finish initializing a free space btree. */
@@ -558,7 +558,7 @@ xfs_bnoroot_init(
        struct xfs_buf          *bp,
        struct aghdr_init_data  *id)
 {
-       xfs_btree_init_block(mp, bp, id->bc_ops, 0, 0, id->agno);
+       xfs_btree_init_buf(mp, bp, id->bc_ops, 0, 0, id->agno);
        xfs_freesp_init_recs(mp, bp, id);
 }
 
@@ -574,7 +574,7 @@ xfs_rmaproot_init(
        struct xfs_btree_block  *block = XFS_BUF_TO_BLOCK(bp);
        struct xfs_rmap_rec     *rrec;
 
-       xfs_btree_init_block(mp, bp, id->bc_ops, 0, 4, id->agno);
+       xfs_btree_init_buf(mp, bp, id->bc_ops, 0, 4, id->agno);
 
        /*
         * mark the AG header regions as static metadata The BNO
index f9de93499bce47256f441856ba331422bb001e34..ddaf40e0f3092a49895094ec3b7188e7cf11a815 100644 (file)
@@ -35,10 +35,10 @@ xfs_bmbt_init_block(
        __u16                           numrecs)
 {
        if (bp)
-               xfs_btree_init_block(ip->i_mount, bp, &xfs_bmbt_ops, level,
+               xfs_btree_init_buf(ip->i_mount, bp, &xfs_bmbt_ops, level,
                                numrecs, ip->i_ino);
        else
-               xfs_btree_init_block_int(ip->i_mount, buf, &xfs_bmbt_ops,
+               xfs_btree_init_block(ip->i_mount, buf, &xfs_bmbt_ops,
                                XFS_BUF_DADDR_NULL, level, numrecs, ip->i_ino);
 }
 
index ed5d485b609bed15c7207056a05a568f45377109..29abac7b3e0392a0fb9578cac85b517f6fb56f0e 100644 (file)
@@ -1154,7 +1154,7 @@ xfs_btree_set_sibling(
 }
 
 void
-xfs_btree_init_block_int(
+xfs_btree_init_block(
        struct xfs_mount        *mp,
        struct xfs_btree_block  *buf,
        const struct xfs_btree_ops *ops,
@@ -1196,7 +1196,7 @@ xfs_btree_init_block_int(
 }
 
 void
-xfs_btree_init_block(
+xfs_btree_init_buf(
        struct xfs_mount                *mp,
        struct xfs_buf                  *bp,
        const struct xfs_btree_ops      *ops,
@@ -1204,7 +1204,7 @@ xfs_btree_init_block(
        __u16                           numrecs,
        __u64                           owner)
 {
-       xfs_btree_init_block_int(mp, XFS_BUF_TO_BLOCK(bp), ops,
+       xfs_btree_init_block(mp, XFS_BUF_TO_BLOCK(bp), ops,
                        xfs_buf_daddr(bp), level, numrecs, owner);
 }
 
@@ -1228,7 +1228,7 @@ xfs_btree_init_block_cur(
        else
                owner = cur->bc_ag.pag->pag_agno;
 
-       xfs_btree_init_block_int(cur->bc_mp, XFS_BUF_TO_BLOCK(bp), cur->bc_ops,
+       xfs_btree_init_block(cur->bc_mp, XFS_BUF_TO_BLOCK(bp), cur->bc_ops,
                        xfs_buf_daddr(bp), level, numrecs, owner);
 }
 
index 923f884fe5267f17e15185cea4c66bdebf62b281..56901d2591ed73b2ba8b3a05400ed3ceea092dfa 100644 (file)
@@ -435,10 +435,10 @@ xfs_btree_reada_bufs(
 /*
  * Initialise a new btree block header
  */
-void xfs_btree_init_block(struct xfs_mount *mp, struct xfs_buf *bp,
+void xfs_btree_init_buf(struct xfs_mount *mp, struct xfs_buf *bp,
                const struct xfs_btree_ops *ops, __u16 level, __u16 numrecs,
                __u64 owner);
-void xfs_btree_init_block_int(struct xfs_mount *mp,
+void xfs_btree_init_block(struct xfs_mount *mp,
                struct xfs_btree_block *buf, const struct xfs_btree_ops *ops,
                xfs_daddr_t blkno, __u16 level, __u16 numrecs, __u64 owner);
 
index 1ebed1c3a4e4b834e7559051ab88f05e675c8e7c..b590f4580a6d0fa598526c2f31b0537bb08f08d4 100644 (file)
@@ -410,7 +410,7 @@ xfs_btree_bload_prep_block(
                ifp->if_broot_bytes = (int)new_size;
 
                /* Initialize it and send it out. */
-               xfs_btree_init_block_int(cur->bc_mp, ifp->if_broot,
+               xfs_btree_init_block(cur->bc_mp, ifp->if_broot,
                                cur->bc_ops, XFS_BUF_DADDR_NULL, level,
                                nr_this_block, cur->bc_ino.ip->i_ino);