diff options
Diffstat (limited to 'fs/xfs/xfs_alloc_btree.c')
-rw-r--r-- | fs/xfs/xfs_alloc_btree.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/xfs/xfs_alloc_btree.c b/fs/xfs/xfs_alloc_btree.c index 9c91dfcb6f29..1f268b6f4362 100644 --- a/fs/xfs/xfs_alloc_btree.c +++ b/fs/xfs/xfs_alloc_btree.c | |||
@@ -2219,6 +2219,14 @@ xfs_allocbt_dup_cursor( | |||
2219 | cur->bc_btnum); | 2219 | cur->bc_btnum); |
2220 | } | 2220 | } |
2221 | 2221 | ||
2222 | STATIC int | ||
2223 | xfs_allocbt_get_maxrecs( | ||
2224 | struct xfs_btree_cur *cur, | ||
2225 | int level) | ||
2226 | { | ||
2227 | return cur->bc_mp->m_alloc_mxr[level != 0]; | ||
2228 | } | ||
2229 | |||
2222 | #ifdef XFS_BTREE_TRACE | 2230 | #ifdef XFS_BTREE_TRACE |
2223 | ktrace_t *xfs_allocbt_trace_buf; | 2231 | ktrace_t *xfs_allocbt_trace_buf; |
2224 | 2232 | ||
@@ -2287,6 +2295,7 @@ xfs_allocbt_trace_record( | |||
2287 | 2295 | ||
2288 | static const struct xfs_btree_ops xfs_allocbt_ops = { | 2296 | static const struct xfs_btree_ops xfs_allocbt_ops = { |
2289 | .dup_cursor = xfs_allocbt_dup_cursor, | 2297 | .dup_cursor = xfs_allocbt_dup_cursor, |
2298 | .get_maxrecs = xfs_allocbt_get_maxrecs, | ||
2290 | 2299 | ||
2291 | #ifdef XFS_BTREE_TRACE | 2300 | #ifdef XFS_BTREE_TRACE |
2292 | .trace_enter = xfs_allocbt_trace_enter, | 2301 | .trace_enter = xfs_allocbt_trace_enter, |