diff options
Diffstat (limited to 'fs/xfs/xfs_ialloc_btree.c')
-rw-r--r-- | fs/xfs/xfs_ialloc_btree.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/xfs/xfs_ialloc_btree.c b/fs/xfs/xfs_ialloc_btree.c index fc99524b17af..18867f1aacac 100644 --- a/fs/xfs/xfs_ialloc_btree.c +++ b/fs/xfs/xfs_ialloc_btree.c | |||
@@ -2085,6 +2085,14 @@ xfs_inobt_dup_cursor( | |||
2085 | cur->bc_private.a.agbp, cur->bc_private.a.agno); | 2085 | cur->bc_private.a.agbp, cur->bc_private.a.agno); |
2086 | } | 2086 | } |
2087 | 2087 | ||
2088 | STATIC int | ||
2089 | xfs_inobt_get_maxrecs( | ||
2090 | struct xfs_btree_cur *cur, | ||
2091 | int level) | ||
2092 | { | ||
2093 | return cur->bc_mp->m_inobt_mxr[level != 0]; | ||
2094 | } | ||
2095 | |||
2088 | #ifdef XFS_BTREE_TRACE | 2096 | #ifdef XFS_BTREE_TRACE |
2089 | ktrace_t *xfs_inobt_trace_buf; | 2097 | ktrace_t *xfs_inobt_trace_buf; |
2090 | 2098 | ||
@@ -2153,6 +2161,7 @@ xfs_inobt_trace_record( | |||
2153 | 2161 | ||
2154 | static const struct xfs_btree_ops xfs_inobt_ops = { | 2162 | static const struct xfs_btree_ops xfs_inobt_ops = { |
2155 | .dup_cursor = xfs_inobt_dup_cursor, | 2163 | .dup_cursor = xfs_inobt_dup_cursor, |
2164 | .get_maxrecs = xfs_inobt_get_maxrecs, | ||
2156 | 2165 | ||
2157 | #ifdef XFS_BTREE_TRACE | 2166 | #ifdef XFS_BTREE_TRACE |
2158 | .trace_enter = xfs_inobt_trace_enter, | 2167 | .trace_enter = xfs_inobt_trace_enter, |