Commit 3efd7534 authored by Steven Whitehouse's avatar Steven Whitehouse

[GFS2] Make newly moved functions static

The functions moved from bits.c can now be made static.
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 88c8ab1f
...@@ -58,8 +58,9 @@ static const char valid_change[16] = { ...@@ -58,8 +58,9 @@ static const char valid_change[16] = {
* *
*/ */
void gfs2_setbit(struct gfs2_rgrpd *rgd, unsigned char *buffer, static void gfs2_setbit(struct gfs2_rgrpd *rgd, unsigned char *buffer,
unsigned int buflen, uint32_t block, unsigned char new_state) unsigned int buflen, uint32_t block,
unsigned char new_state)
{ {
unsigned char *byte, *end, cur_state; unsigned char *byte, *end, cur_state;
unsigned int bit; unsigned int bit;
...@@ -87,7 +88,7 @@ void gfs2_setbit(struct gfs2_rgrpd *rgd, unsigned char *buffer, ...@@ -87,7 +88,7 @@ void gfs2_setbit(struct gfs2_rgrpd *rgd, unsigned char *buffer,
* *
*/ */
unsigned char gfs2_testbit(struct gfs2_rgrpd *rgd, unsigned char *buffer, static unsigned char gfs2_testbit(struct gfs2_rgrpd *rgd, unsigned char *buffer,
unsigned int buflen, uint32_t block) unsigned int buflen, uint32_t block)
{ {
unsigned char *byte, *end, cur_state; unsigned char *byte, *end, cur_state;
...@@ -120,7 +121,7 @@ unsigned char gfs2_testbit(struct gfs2_rgrpd *rgd, unsigned char *buffer, ...@@ -120,7 +121,7 @@ unsigned char gfs2_testbit(struct gfs2_rgrpd *rgd, unsigned char *buffer,
* Return: the block number (bitmap buffer scope) that was found * Return: the block number (bitmap buffer scope) that was found
*/ */
uint32_t gfs2_bitfit(struct gfs2_rgrpd *rgd, unsigned char *buffer, static uint32_t gfs2_bitfit(struct gfs2_rgrpd *rgd, unsigned char *buffer,
unsigned int buflen, uint32_t goal, unsigned int buflen, uint32_t goal,
unsigned char old_state) unsigned char old_state)
{ {
...@@ -167,7 +168,7 @@ uint32_t gfs2_bitfit(struct gfs2_rgrpd *rgd, unsigned char *buffer, ...@@ -167,7 +168,7 @@ uint32_t gfs2_bitfit(struct gfs2_rgrpd *rgd, unsigned char *buffer,
* Returns: The number of bits * Returns: The number of bits
*/ */
uint32_t gfs2_bitcount(struct gfs2_rgrpd *rgd, unsigned char *buffer, static uint32_t gfs2_bitcount(struct gfs2_rgrpd *rgd, unsigned char *buffer,
unsigned int buflen, unsigned char state) unsigned int buflen, unsigned char state)
{ {
unsigned char *byte = buffer; unsigned char *byte = buffer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment