diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-05-18 14:02:52 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-05-18 14:02:52 -0400 |
commit | 3efd7534a84a3eacb9d43e7f02fadeec4a5b79ff (patch) | |
tree | f4b0486ecbb5f873162c91279642c56dda0de2df /fs/gfs2/rgrp.c | |
parent | 88c8ab1fcb53feadb8ebdcb4cda7e6137c6416bd (diff) |
[GFS2] Make newly moved functions static
The functions moved from bits.c can now be made static.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/rgrp.c')
-rw-r--r-- | fs/gfs2/rgrp.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 5a32d6932978..6d918a7c6222 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c | |||
@@ -58,8 +58,9 @@ static const char valid_change[16] = { | |||
58 | * | 58 | * |
59 | */ | 59 | */ |
60 | 60 | ||
61 | void gfs2_setbit(struct gfs2_rgrpd *rgd, unsigned char *buffer, | 61 | static void gfs2_setbit(struct gfs2_rgrpd *rgd, unsigned char *buffer, |
62 | unsigned int buflen, uint32_t block, unsigned char new_state) | 62 | unsigned int buflen, uint32_t block, |
63 | unsigned char new_state) | ||
63 | { | 64 | { |
64 | unsigned char *byte, *end, cur_state; | 65 | unsigned char *byte, *end, cur_state; |
65 | unsigned int bit; | 66 | unsigned int bit; |
@@ -87,8 +88,8 @@ void gfs2_setbit(struct gfs2_rgrpd *rgd, unsigned char *buffer, | |||
87 | * | 88 | * |
88 | */ | 89 | */ |
89 | 90 | ||
90 | unsigned char gfs2_testbit(struct gfs2_rgrpd *rgd, unsigned char *buffer, | 91 | static unsigned char gfs2_testbit(struct gfs2_rgrpd *rgd, unsigned char *buffer, |
91 | unsigned int buflen, uint32_t block) | 92 | unsigned int buflen, uint32_t block) |
92 | { | 93 | { |
93 | unsigned char *byte, *end, cur_state; | 94 | unsigned char *byte, *end, cur_state; |
94 | unsigned int bit; | 95 | unsigned int bit; |
@@ -120,9 +121,9 @@ unsigned char gfs2_testbit(struct gfs2_rgrpd *rgd, unsigned char *buffer, | |||
120 | * Return: the block number (bitmap buffer scope) that was found | 121 | * Return: the block number (bitmap buffer scope) that was found |
121 | */ | 122 | */ |
122 | 123 | ||
123 | uint32_t gfs2_bitfit(struct gfs2_rgrpd *rgd, unsigned char *buffer, | 124 | static uint32_t gfs2_bitfit(struct gfs2_rgrpd *rgd, unsigned char *buffer, |
124 | unsigned int buflen, uint32_t goal, | 125 | unsigned int buflen, uint32_t goal, |
125 | unsigned char old_state) | 126 | unsigned char old_state) |
126 | { | 127 | { |
127 | unsigned char *byte, *end, alloc; | 128 | unsigned char *byte, *end, alloc; |
128 | uint32_t blk = goal; | 129 | uint32_t blk = goal; |
@@ -167,8 +168,8 @@ uint32_t gfs2_bitfit(struct gfs2_rgrpd *rgd, unsigned char *buffer, | |||
167 | * Returns: The number of bits | 168 | * Returns: The number of bits |
168 | */ | 169 | */ |
169 | 170 | ||
170 | uint32_t gfs2_bitcount(struct gfs2_rgrpd *rgd, unsigned char *buffer, | 171 | static uint32_t gfs2_bitcount(struct gfs2_rgrpd *rgd, unsigned char *buffer, |
171 | unsigned int buflen, unsigned char state) | 172 | unsigned int buflen, unsigned char state) |
172 | { | 173 | { |
173 | unsigned char *byte = buffer; | 174 | unsigned char *byte = buffer; |
174 | unsigned char *end = buffer + buflen; | 175 | unsigned char *end = buffer + buflen; |