aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_btree.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2008-10-30 01:55:23 -0400
committerLachlan McIlroy <lachlan@sgi.com>2008-10-30 01:55:23 -0400
commitce5e42db421a41b1ad0cfd68c6058566b963e14b (patch)
tree7723f47e468c6b933a89361462c04436fe617cda /fs/xfs/xfs_btree.h
parent8c4ed633e65d0bd0a25d45aad9b4646e3236cad7 (diff)
[XFS] add get_maxrecs btree operation
Factor xfs_btree_maxrecs into a per-btree operation. The get_maxrecs method is based on a patch from Dave Chinner. SGI-PV: 985583 SGI-Modid: xfs-linux-melb:xfs-kern:32188a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Bill O'Donnell <billodo@sgi.com> Signed-off-by: David Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_btree.h')
-rw-r--r--fs/xfs/xfs_btree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_btree.h b/fs/xfs/xfs_btree.h
index 0647a0eff0de..5398cd0d4d4d 100644
--- a/fs/xfs/xfs_btree.h
+++ b/fs/xfs/xfs_btree.h
@@ -183,6 +183,9 @@ struct xfs_btree_ops {
183 /* cursor operations */ 183 /* cursor operations */
184 struct xfs_btree_cur *(*dup_cursor)(struct xfs_btree_cur *); 184 struct xfs_btree_cur *(*dup_cursor)(struct xfs_btree_cur *);
185 185
186 /* records in block/level */
187 int (*get_maxrecs)(struct xfs_btree_cur *cur, int level);
188
186 /* btree tracing */ 189 /* btree tracing */
187#ifdef XFS_BTREE_TRACE 190#ifdef XFS_BTREE_TRACE
188 void (*trace_enter)(struct xfs_btree_cur *, const char *, 191 void (*trace_enter)(struct xfs_btree_cur *, const char *,