summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_btree.c
diff options
context:
space:
mode:
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);
}