diff options
Diffstat (limited to 'fs/xfs/xfs_btree.h')
-rw-r--r-- | fs/xfs/xfs_btree.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_btree.h b/fs/xfs/xfs_btree.h index c3bfa5556c19..04311dbeff19 100644 --- a/fs/xfs/xfs_btree.h +++ b/fs/xfs/xfs_btree.h | |||
@@ -533,6 +533,7 @@ int xfs_btree_decrement(struct xfs_btree_cur *, int, int *); | |||
533 | int xfs_btree_lookup(struct xfs_btree_cur *, xfs_lookup_t, int *); | 533 | int xfs_btree_lookup(struct xfs_btree_cur *, xfs_lookup_t, int *); |
534 | int xfs_btree_updkey(struct xfs_btree_cur *, union xfs_btree_key *, int); | 534 | int xfs_btree_updkey(struct xfs_btree_cur *, union xfs_btree_key *, int); |
535 | int xfs_btree_update(struct xfs_btree_cur *, union xfs_btree_rec *); | 535 | int xfs_btree_update(struct xfs_btree_cur *, union xfs_btree_rec *); |
536 | int xfs_btree_rshift(struct xfs_btree_cur *, int, int *); | ||
536 | 537 | ||
537 | /* | 538 | /* |
538 | * Helpers. | 539 | * Helpers. |
@@ -542,6 +543,12 @@ static inline int xfs_btree_get_numrecs(struct xfs_btree_block *block) | |||
542 | return be16_to_cpu(block->bb_numrecs); | 543 | return be16_to_cpu(block->bb_numrecs); |
543 | } | 544 | } |
544 | 545 | ||
546 | static inline void xfs_btree_set_numrecs(struct xfs_btree_block *block, | ||
547 | __uint16_t numrecs) | ||
548 | { | ||
549 | block->bb_numrecs = cpu_to_be16(numrecs); | ||
550 | } | ||
551 | |||
545 | static inline int xfs_btree_get_level(struct xfs_btree_block *block) | 552 | static inline int xfs_btree_get_level(struct xfs_btree_block *block) |
546 | { | 553 | { |
547 | return be16_to_cpu(block->bb_level); | 554 | return be16_to_cpu(block->bb_level); |