aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_btree.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2008-10-30 01:58:41 -0400
committerLachlan McIlroy <lachlan@sgi.com>2008-10-30 01:58:41 -0400
commit3cc7524c8445e6244b055f3fa338529188c7c260 (patch)
treeb550a7e063bf1af270b25cc32b8d3b6aee198347 /fs/xfs/xfs_btree.h
parent4a26e66e7728112f0e1cd7eca3bcc430b3a221c9 (diff)
[XFS] mark various functions in xfs_btree.c static
Lots of functionality in xfs_btree.c isn't needed by callers outside of this file anymore, so mark these functions static. SGI-PV: 985583 SGI-Modid: xfs-linux-melb:xfs-kern:32209a 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.h67
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 */
345int /* error (0 or EFSCORRUPTED) */
346xfs_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 */
355int 345int
@@ -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 */
378int /* error (0 or EFSCORRUPTED) */
379xfs_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 */
387int /* error (0 or EFSCORRUPTED) */
388xfs_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 */
415int /* success=1, failure=0 */
416xfs_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 */
455int /* success=1, failure=0 */
456xfs_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 */
524int /* readahead block count */
525xfs_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(
544int xfs_btree_increment(struct xfs_btree_cur *, int, int *); 483int xfs_btree_increment(struct xfs_btree_cur *, int, int *);
545int xfs_btree_decrement(struct xfs_btree_cur *, int, int *); 484int xfs_btree_decrement(struct xfs_btree_cur *, int, int *);
546int xfs_btree_lookup(struct xfs_btree_cur *, xfs_lookup_t, int *); 485int xfs_btree_lookup(struct xfs_btree_cur *, xfs_lookup_t, int *);
547int xfs_btree_updkey(struct xfs_btree_cur *, union xfs_btree_key *, int);
548int xfs_btree_update(struct xfs_btree_cur *, union xfs_btree_rec *); 486int xfs_btree_update(struct xfs_btree_cur *, union xfs_btree_rec *);
549int xfs_btree_lshift(struct xfs_btree_cur *, int, int *);
550int xfs_btree_rshift(struct xfs_btree_cur *, int, int *);
551int xfs_btree_split(struct xfs_btree_cur *, int, union xfs_btree_ptr *,
552 union xfs_btree_key *, struct xfs_btree_cur **, int *);
553int xfs_btree_new_root(struct xfs_btree_cur *, int *);
554int xfs_btree_new_iroot(struct xfs_btree_cur *, int *, int *); 487int xfs_btree_new_iroot(struct xfs_btree_cur *, int *, int *);
555int xfs_btree_kill_iroot(struct xfs_btree_cur *); 488int xfs_btree_kill_iroot(struct xfs_btree_cur *);
556int xfs_btree_insert(struct xfs_btree_cur *, int *); 489int xfs_btree_insert(struct xfs_btree_cur *, int *);