summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_btree.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-02-22 21:35:19 +0100
committerDarrick J. Wong <djwong@kernel.org>2024-02-22 21:35:19 +0100
commit11388f6581f40e7d5a69ce5f8b13264eca7c2c5c (patch)
treefff9a5dfe40b2434c1d6001804e5f9e5bf38b9f2 /fs/xfs/libxfs/xfs_btree.c
parentxfs: btree convert xfs_btree_init_block to xfs_btree_init_buf calls (diff)
downloadlinux-11388f6581f40e7d5a69ce5f8b13264eca7c2c5c.tar.xz
linux-11388f6581f40e7d5a69ce5f8b13264eca7c2c5c.zip
xfs: remove the unnecessary daddr paramter to _init_block
Now that all of the callers pass XFS_BUF_DADDR_NULL as the daddr parameter, we can elide that too. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_btree.c')
-rw-r--r--fs/xfs/libxfs/xfs_btree.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/fs/xfs/libxfs/xfs_btree.c b/fs/xfs/libxfs/xfs_btree.c
index f1db5118dbaa..b5b9b021c67a 100644
--- a/fs/xfs/libxfs/xfs_btree.c
+++ b/fs/xfs/libxfs/xfs_btree.c
@@ -1153,8 +1153,8 @@ xfs_btree_set_sibling(
}
}
-void
-xfs_btree_init_block(
+static void
+__xfs_btree_init_block(
struct xfs_mount *mp,
struct xfs_btree_block *buf,
const struct xfs_btree_ops *ops,
@@ -1196,6 +1196,19 @@ xfs_btree_init_block(
}
void
+xfs_btree_init_block(
+ struct xfs_mount *mp,
+ struct xfs_btree_block *block,
+ const struct xfs_btree_ops *ops,
+ __u16 level,
+ __u16 numrecs,
+ __u64 owner)
+{
+ __xfs_btree_init_block(mp, block, ops, XFS_BUF_DADDR_NULL, level,
+ numrecs, owner);
+}
+
+void
xfs_btree_init_buf(
struct xfs_mount *mp,
struct xfs_buf *bp,
@@ -1204,7 +1217,7 @@ xfs_btree_init_buf(
__u16 numrecs,
__u64 owner)
{
- xfs_btree_init_block(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);
}