aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/gfs2/rgrp.c19
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
61void gfs2_setbit(struct gfs2_rgrpd *rgd, unsigned char *buffer, 61static 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
90unsigned char gfs2_testbit(struct gfs2_rgrpd *rgd, unsigned char *buffer, 91static 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
123uint32_t gfs2_bitfit(struct gfs2_rgrpd *rgd, unsigned char *buffer, 124static 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
170uint32_t gfs2_bitcount(struct gfs2_rgrpd *rgd, unsigned char *buffer, 171static 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;