diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-10-30 01:58:41 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@sgi.com> | 2008-10-30 01:58:41 -0400 |
commit | 3cc7524c8445e6244b055f3fa338529188c7c260 (patch) | |
tree | b550a7e063bf1af270b25cc32b8d3b6aee198347 /fs/xfs/xfs_btree.c | |
parent | 4a26e66e7728112f0e1cd7eca3bcc430b3a221c9 (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.c')
-rw-r--r-- | fs/xfs/xfs_btree.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/xfs/xfs_btree.c b/fs/xfs/xfs_btree.c index d667d30210a8..b735c7299a8e 100644 --- a/fs/xfs/xfs_btree.c +++ b/fs/xfs/xfs_btree.c | |||
@@ -87,7 +87,7 @@ xfs_btree_check_lblock( | |||
87 | return 0; | 87 | return 0; |
88 | } | 88 | } |
89 | 89 | ||
90 | int /* error (0 or EFSCORRUPTED) */ | 90 | STATIC int /* error (0 or EFSCORRUPTED) */ |
91 | xfs_btree_check_sblock( | 91 | xfs_btree_check_sblock( |
92 | struct xfs_btree_cur *cur, /* btree cursor */ | 92 | struct xfs_btree_cur *cur, /* btree cursor */ |
93 | struct xfs_btree_sblock *block, /* btree short form block pointer */ | 93 | struct xfs_btree_sblock *block, /* btree short form block pointer */ |
@@ -163,7 +163,7 @@ xfs_btree_check_lptr( | |||
163 | /* | 163 | /* |
164 | * Check that (short) pointer is ok. | 164 | * Check that (short) pointer is ok. |
165 | */ | 165 | */ |
166 | int /* error (0 or EFSCORRUPTED) */ | 166 | STATIC int /* error (0 or EFSCORRUPTED) */ |
167 | xfs_btree_check_sptr( | 167 | xfs_btree_check_sptr( |
168 | struct xfs_btree_cur *cur, /* btree cursor */ | 168 | struct xfs_btree_cur *cur, /* btree cursor */ |
169 | xfs_agblock_t bno, /* btree block disk address */ | 169 | xfs_agblock_t bno, /* btree block disk address */ |
@@ -182,7 +182,7 @@ xfs_btree_check_sptr( | |||
182 | /* | 182 | /* |
183 | * Check that block ptr is ok. | 183 | * Check that block ptr is ok. |
184 | */ | 184 | */ |
185 | int /* error (0 or EFSCORRUPTED) */ | 185 | STATIC int /* error (0 or EFSCORRUPTED) */ |
186 | xfs_btree_check_ptr( | 186 | xfs_btree_check_ptr( |
187 | struct xfs_btree_cur *cur, /* btree cursor */ | 187 | struct xfs_btree_cur *cur, /* btree cursor */ |
188 | union xfs_btree_ptr *ptr, /* btree block disk address */ | 188 | union xfs_btree_ptr *ptr, /* btree block disk address */ |
@@ -523,7 +523,7 @@ xfs_btree_islastblock( | |||
523 | * Change the cursor to point to the first record at the given level. | 523 | * Change the cursor to point to the first record at the given level. |
524 | * Other levels are unaffected. | 524 | * Other levels are unaffected. |
525 | */ | 525 | */ |
526 | int /* success=1, failure=0 */ | 526 | STATIC int /* success=1, failure=0 */ |
527 | xfs_btree_firstrec( | 527 | xfs_btree_firstrec( |
528 | xfs_btree_cur_t *cur, /* btree cursor */ | 528 | xfs_btree_cur_t *cur, /* btree cursor */ |
529 | int level) /* level to change */ | 529 | int level) /* level to change */ |
@@ -552,7 +552,7 @@ xfs_btree_firstrec( | |||
552 | * Change the cursor to point to the last record in the current block | 552 | * Change the cursor to point to the last record in the current block |
553 | * at the given level. Other levels are unaffected. | 553 | * at the given level. Other levels are unaffected. |
554 | */ | 554 | */ |
555 | int /* success=1, failure=0 */ | 555 | STATIC int /* success=1, failure=0 */ |
556 | xfs_btree_lastrec( | 556 | xfs_btree_lastrec( |
557 | xfs_btree_cur_t *cur, /* btree cursor */ | 557 | xfs_btree_cur_t *cur, /* btree cursor */ |
558 | int level) /* level to change */ | 558 | int level) /* level to change */ |
@@ -775,7 +775,7 @@ xfs_btree_readahead_sblock( | |||
775 | * Read-ahead btree blocks, at the given level. | 775 | * Read-ahead btree blocks, at the given level. |
776 | * Bits in lr are set from XFS_BTCUR_{LEFT,RIGHT}RA. | 776 | * Bits in lr are set from XFS_BTCUR_{LEFT,RIGHT}RA. |
777 | */ | 777 | */ |
778 | int | 778 | STATIC int |
779 | xfs_btree_readahead( | 779 | xfs_btree_readahead( |
780 | struct xfs_btree_cur *cur, /* btree cursor */ | 780 | struct xfs_btree_cur *cur, /* btree cursor */ |
781 | int lev, /* level in btree */ | 781 | int lev, /* level in btree */ |
@@ -1711,7 +1711,7 @@ error0: | |||
1711 | /* | 1711 | /* |
1712 | * Update keys at all levels from here to the root along the cursor's path. | 1712 | * Update keys at all levels from here to the root along the cursor's path. |
1713 | */ | 1713 | */ |
1714 | int | 1714 | STATIC int |
1715 | xfs_btree_updkey( | 1715 | xfs_btree_updkey( |
1716 | struct xfs_btree_cur *cur, | 1716 | struct xfs_btree_cur *cur, |
1717 | union xfs_btree_key *keyp, | 1717 | union xfs_btree_key *keyp, |
@@ -1821,7 +1821,7 @@ error0: | |||
1821 | * Move 1 record left from cur/level if possible. | 1821 | * Move 1 record left from cur/level if possible. |
1822 | * Update cur to reflect the new path. | 1822 | * Update cur to reflect the new path. |
1823 | */ | 1823 | */ |
1824 | int /* error */ | 1824 | STATIC int /* error */ |
1825 | xfs_btree_lshift( | 1825 | xfs_btree_lshift( |
1826 | struct xfs_btree_cur *cur, | 1826 | struct xfs_btree_cur *cur, |
1827 | int level, | 1827 | int level, |
@@ -2004,7 +2004,7 @@ error0: | |||
2004 | * Move 1 record right from cur/level if possible. | 2004 | * Move 1 record right from cur/level if possible. |
2005 | * Update cur to reflect the new path. | 2005 | * Update cur to reflect the new path. |
2006 | */ | 2006 | */ |
2007 | int /* error */ | 2007 | STATIC int /* error */ |
2008 | xfs_btree_rshift( | 2008 | xfs_btree_rshift( |
2009 | struct xfs_btree_cur *cur, | 2009 | struct xfs_btree_cur *cur, |
2010 | int level, | 2010 | int level, |
@@ -2180,7 +2180,7 @@ error1: | |||
2180 | * Return new block number and the key to its first | 2180 | * Return new block number and the key to its first |
2181 | * record (to be inserted into parent). | 2181 | * record (to be inserted into parent). |
2182 | */ | 2182 | */ |
2183 | int /* error */ | 2183 | STATIC int /* error */ |
2184 | xfs_btree_split( | 2184 | xfs_btree_split( |
2185 | struct xfs_btree_cur *cur, | 2185 | struct xfs_btree_cur *cur, |
2186 | int level, | 2186 | int level, |
@@ -2465,7 +2465,7 @@ error0: | |||
2465 | /* | 2465 | /* |
2466 | * Allocate a new root block, fill it in. | 2466 | * Allocate a new root block, fill it in. |
2467 | */ | 2467 | */ |
2468 | int /* error */ | 2468 | STATIC int /* error */ |
2469 | xfs_btree_new_root( | 2469 | xfs_btree_new_root( |
2470 | struct xfs_btree_cur *cur, /* btree cursor */ | 2470 | struct xfs_btree_cur *cur, /* btree cursor */ |
2471 | int *stat) /* success/failure */ | 2471 | int *stat) /* success/failure */ |