diff options
Diffstat (limited to 'fs/xfs/xfs_btree.h')
-rw-r--r-- | fs/xfs/xfs_btree.h | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/fs/xfs/xfs_btree.h b/fs/xfs/xfs_btree.h index 25a488d4da18..2a22c587f1ae 100644 --- a/fs/xfs/xfs_btree.h +++ b/fs/xfs/xfs_btree.h | |||
@@ -340,16 +340,6 @@ xfs_btree_check_lblock( | |||
340 | struct xfs_buf *bp); /* buffer containing block, if any */ | 340 | struct xfs_buf *bp); /* buffer containing block, if any */ |
341 | 341 | ||
342 | /* | 342 | /* |
343 | * Check that short form block header is ok. | ||
344 | */ | ||
345 | int /* error (0 or EFSCORRUPTED) */ | ||
346 | xfs_btree_check_sblock( | ||
347 | struct xfs_btree_cur *cur, /* btree cursor */ | ||
348 | struct xfs_btree_sblock *block, /* btree short form block pointer */ | ||
349 | int level, /* level of the btree block */ | ||
350 | struct xfs_buf *bp); /* buffer containing block */ | ||
351 | |||
352 | /* | ||
353 | * Check that block header is ok. | 343 | * Check that block header is ok. |
354 | */ | 344 | */ |
355 | int | 345 | int |
@@ -368,29 +358,6 @@ xfs_btree_check_lptr( | |||
368 | xfs_dfsbno_t ptr, /* btree block disk address */ | 358 | xfs_dfsbno_t ptr, /* btree block disk address */ |
369 | int level); /* btree block level */ | 359 | int level); /* btree block level */ |
370 | 360 | ||
371 | #define xfs_btree_check_lptr_disk(cur, ptr, level) \ | ||
372 | xfs_btree_check_lptr(cur, be64_to_cpu(ptr), level) | ||
373 | |||
374 | |||
375 | /* | ||
376 | * Check that (short) pointer is ok. | ||
377 | */ | ||
378 | int /* error (0 or EFSCORRUPTED) */ | ||
379 | xfs_btree_check_sptr( | ||
380 | struct xfs_btree_cur *cur, /* btree cursor */ | ||
381 | xfs_agblock_t ptr, /* btree block disk address */ | ||
382 | int level); /* btree block level */ | ||
383 | |||
384 | /* | ||
385 | * Check that (short) pointer is ok. | ||
386 | */ | ||
387 | int /* error (0 or EFSCORRUPTED) */ | ||
388 | xfs_btree_check_ptr( | ||
389 | struct xfs_btree_cur *cur, /* btree cursor */ | ||
390 | union xfs_btree_ptr *ptr, /* btree block disk address */ | ||
391 | int index, /* offset from ptr to check */ | ||
392 | int level); /* btree block level */ | ||
393 | |||
394 | /* | 361 | /* |
395 | * Delete the btree cursor. | 362 | * Delete the btree cursor. |
396 | */ | 363 | */ |
@@ -409,15 +376,6 @@ xfs_btree_dup_cursor( | |||
409 | xfs_btree_cur_t **ncur);/* output cursor */ | 376 | xfs_btree_cur_t **ncur);/* output cursor */ |
410 | 377 | ||
411 | /* | 378 | /* |
412 | * Change the cursor to point to the first record in the current block | ||
413 | * at the given level. Other levels are unaffected. | ||
414 | */ | ||
415 | int /* success=1, failure=0 */ | ||
416 | xfs_btree_firstrec( | ||
417 | xfs_btree_cur_t *cur, /* btree cursor */ | ||
418 | int level); /* level to change */ | ||
419 | |||
420 | /* | ||
421 | * Get a buffer for the block, return it with no data read. | 379 | * Get a buffer for the block, return it with no data read. |
422 | * Long-form addressing. | 380 | * Long-form addressing. |
423 | */ | 381 | */ |
@@ -449,15 +407,6 @@ xfs_btree_islastblock( | |||
449 | int level); /* level to check */ | 407 | int level); /* level to check */ |
450 | 408 | ||
451 | /* | 409 | /* |
452 | * Change the cursor to point to the last record in the current block | ||
453 | * at the given level. Other levels are unaffected. | ||
454 | */ | ||
455 | int /* success=1, failure=0 */ | ||
456 | xfs_btree_lastrec( | ||
457 | xfs_btree_cur_t *cur, /* btree cursor */ | ||
458 | int level); /* level to change */ | ||
459 | |||
460 | /* | ||
461 | * Compute first and last byte offsets for the fields given. | 410 | * Compute first and last byte offsets for the fields given. |
462 | * Interprets the offsets table, which contains struct field offsets. | 411 | * Interprets the offsets table, which contains struct field offsets. |
463 | */ | 412 | */ |
@@ -518,16 +467,6 @@ xfs_btree_reada_bufs( | |||
518 | xfs_extlen_t count); /* count of filesystem blocks */ | 467 | xfs_extlen_t count); /* count of filesystem blocks */ |
519 | 468 | ||
520 | /* | 469 | /* |
521 | * Read-ahead btree blocks, at the given level. | ||
522 | * Bits in lr are set from XFS_BTCUR_{LEFT,RIGHT}RA. | ||
523 | */ | ||
524 | int /* readahead block count */ | ||
525 | xfs_btree_readahead( | ||
526 | xfs_btree_cur_t *cur, /* btree cursor */ | ||
527 | int lev, /* level in btree */ | ||
528 | int lr); /* left/right bits */ | ||
529 | |||
530 | /* | ||
531 | * Set the buffer for level "lev" in the cursor to bp, releasing | 470 | * Set the buffer for level "lev" in the cursor to bp, releasing |
532 | * any previous buffer. | 471 | * any previous buffer. |
533 | */ | 472 | */ |
@@ -544,13 +483,7 @@ xfs_btree_setbuf( | |||
544 | int xfs_btree_increment(struct xfs_btree_cur *, int, int *); | 483 | int xfs_btree_increment(struct xfs_btree_cur *, int, int *); |
545 | int xfs_btree_decrement(struct xfs_btree_cur *, int, int *); | 484 | int xfs_btree_decrement(struct xfs_btree_cur *, int, int *); |
546 | int xfs_btree_lookup(struct xfs_btree_cur *, xfs_lookup_t, int *); | 485 | int xfs_btree_lookup(struct xfs_btree_cur *, xfs_lookup_t, int *); |
547 | int xfs_btree_updkey(struct xfs_btree_cur *, union xfs_btree_key *, int); | ||
548 | int xfs_btree_update(struct xfs_btree_cur *, union xfs_btree_rec *); | 486 | int xfs_btree_update(struct xfs_btree_cur *, union xfs_btree_rec *); |
549 | int xfs_btree_lshift(struct xfs_btree_cur *, int, int *); | ||
550 | int xfs_btree_rshift(struct xfs_btree_cur *, int, int *); | ||
551 | int xfs_btree_split(struct xfs_btree_cur *, int, union xfs_btree_ptr *, | ||
552 | union xfs_btree_key *, struct xfs_btree_cur **, int *); | ||
553 | int xfs_btree_new_root(struct xfs_btree_cur *, int *); | ||
554 | int xfs_btree_new_iroot(struct xfs_btree_cur *, int *, int *); | 487 | int xfs_btree_new_iroot(struct xfs_btree_cur *, int *, int *); |
555 | int xfs_btree_kill_iroot(struct xfs_btree_cur *); | 488 | int xfs_btree_kill_iroot(struct xfs_btree_cur *); |
556 | int xfs_btree_insert(struct xfs_btree_cur *, int *); | 489 | int xfs_btree_insert(struct xfs_btree_cur *, int *); |