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 21eec863f00f..6f03871f5995 100644 --- a/fs/xfs/xfs_btree.h +++ b/fs/xfs/xfs_btree.h | |||
@@ -186,6 +186,8 @@ struct xfs_btree_ops { | |||
186 | 186 | ||
187 | /* cursor operations */ | 187 | /* cursor operations */ |
188 | struct xfs_btree_cur *(*dup_cursor)(struct xfs_btree_cur *); | 188 | struct xfs_btree_cur *(*dup_cursor)(struct xfs_btree_cur *); |
189 | void (*update_cursor)(struct xfs_btree_cur *src, | ||
190 | struct xfs_btree_cur *dst); | ||
189 | 191 | ||
190 | /* update btree root pointer */ | 192 | /* update btree root pointer */ |
191 | void (*set_root)(struct xfs_btree_cur *cur, | 193 | void (*set_root)(struct xfs_btree_cur *cur, |
@@ -206,9 +208,16 @@ struct xfs_btree_ops { | |||
206 | /* records in block/level */ | 208 | /* records in block/level */ |
207 | int (*get_maxrecs)(struct xfs_btree_cur *cur, int level); | 209 | int (*get_maxrecs)(struct xfs_btree_cur *cur, int level); |
208 | 210 | ||
211 | /* records on disk. Matter for the root in inode case. */ | ||
212 | int (*get_dmaxrecs)(struct xfs_btree_cur *cur, int level); | ||
213 | |||
209 | /* init values of btree structures */ | 214 | /* init values of btree structures */ |
210 | void (*init_key_from_rec)(union xfs_btree_key *key, | 215 | void (*init_key_from_rec)(union xfs_btree_key *key, |
211 | union xfs_btree_rec *rec); | 216 | union xfs_btree_rec *rec); |
217 | void (*init_rec_from_key)(union xfs_btree_key *key, | ||
218 | union xfs_btree_rec *rec); | ||
219 | void (*init_rec_from_cur)(struct xfs_btree_cur *cur, | ||
220 | union xfs_btree_rec *rec); | ||
212 | void (*init_ptr_from_cur)(struct xfs_btree_cur *cur, | 221 | void (*init_ptr_from_cur)(struct xfs_btree_cur *cur, |
213 | union xfs_btree_ptr *ptr); | 222 | union xfs_btree_ptr *ptr); |
214 | 223 | ||
@@ -240,6 +249,7 @@ struct xfs_btree_ops { | |||
240 | * Reasons for the update_lastrec method to be called. | 249 | * Reasons for the update_lastrec method to be called. |
241 | */ | 250 | */ |
242 | #define LASTREC_UPDATE 0 | 251 | #define LASTREC_UPDATE 0 |
252 | #define LASTREC_INSREC 1 | ||
243 | 253 | ||
244 | 254 | ||
245 | /* | 255 | /* |
@@ -549,6 +559,7 @@ int xfs_btree_split(struct xfs_btree_cur *, int, union xfs_btree_ptr *, | |||
549 | union xfs_btree_key *, struct xfs_btree_cur **, int *); | 559 | union xfs_btree_key *, struct xfs_btree_cur **, int *); |
550 | int xfs_btree_new_root(struct xfs_btree_cur *, int *); | 560 | int xfs_btree_new_root(struct xfs_btree_cur *, int *); |
551 | int xfs_btree_new_iroot(struct xfs_btree_cur *, int *, int *); | 561 | int xfs_btree_new_iroot(struct xfs_btree_cur *, int *, int *); |
562 | int xfs_btree_insert(struct xfs_btree_cur *, int *); | ||
552 | 563 | ||
553 | /* | 564 | /* |
554 | * Helpers. | 565 | * Helpers. |