diff options
Diffstat (limited to 'fs/xfs/xfs_btree.h')
-rw-r--r-- | fs/xfs/xfs_btree.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/xfs/xfs_btree.h b/fs/xfs/xfs_btree.h index 52b2da6ab32e..c151175a5fd0 100644 --- a/fs/xfs/xfs_btree.h +++ b/fs/xfs/xfs_btree.h | |||
@@ -190,6 +190,16 @@ struct xfs_btree_ops { | |||
190 | /* records in block/level */ | 190 | /* records in block/level */ |
191 | int (*get_maxrecs)(struct xfs_btree_cur *cur, int level); | 191 | int (*get_maxrecs)(struct xfs_btree_cur *cur, int level); |
192 | 192 | ||
193 | /* init values of btree structures */ | ||
194 | void (*init_key_from_rec)(union xfs_btree_key *key, | ||
195 | union xfs_btree_rec *rec); | ||
196 | void (*init_ptr_from_cur)(struct xfs_btree_cur *cur, | ||
197 | union xfs_btree_ptr *ptr); | ||
198 | |||
199 | /* difference between key value and cursor value */ | ||
200 | __int64_t (*key_diff)(struct xfs_btree_cur *cur, | ||
201 | union xfs_btree_key *key); | ||
202 | |||
193 | /* btree tracing */ | 203 | /* btree tracing */ |
194 | #ifdef XFS_BTREE_TRACE | 204 | #ifdef XFS_BTREE_TRACE |
195 | void (*trace_enter)(struct xfs_btree_cur *, const char *, | 205 | void (*trace_enter)(struct xfs_btree_cur *, const char *, |
@@ -507,6 +517,7 @@ xfs_btree_setbuf( | |||
507 | */ | 517 | */ |
508 | int xfs_btree_increment(struct xfs_btree_cur *, int, int *); | 518 | int xfs_btree_increment(struct xfs_btree_cur *, int, int *); |
509 | int xfs_btree_decrement(struct xfs_btree_cur *, int, int *); | 519 | int xfs_btree_decrement(struct xfs_btree_cur *, int, int *); |
520 | int xfs_btree_lookup(struct xfs_btree_cur *, xfs_lookup_t, int *); | ||
510 | 521 | ||
511 | /* | 522 | /* |
512 | * Helpers. | 523 | * Helpers. |