Commit febfcf91 authored by Philippe De Muyter's avatar Philippe De Muyter Committed by Linus Torvalds

fs: mark nibblemap const

Signed-off-by: default avatarPhilippe De Muyter <phdm@macqel.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 55ca3e79
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
/* This is, of course, shamelessly stolen from fs/minix */ /* This is, of course, shamelessly stolen from fs/minix */
static int nibblemap[] = { 0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4 }; static const int nibblemap[] = { 0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4 };
static u32 static u32
affs_count_free_bits(u32 blocksize, const void *data) affs_count_free_bits(u32 blocksize, const void *data)
......
...@@ -522,7 +522,7 @@ int ext2_new_block(struct inode *inode, unsigned long goal, ...@@ -522,7 +522,7 @@ int ext2_new_block(struct inode *inode, unsigned long goal,
#ifdef EXT2FS_DEBUG #ifdef EXT2FS_DEBUG
static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0}; static const int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
unsigned long ext2_count_free (struct buffer_head * map, unsigned int numchars) unsigned long ext2_count_free (struct buffer_head * map, unsigned int numchars)
{ {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#ifdef EXT3FS_DEBUG #ifdef EXT3FS_DEBUG
static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0}; static const int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
unsigned long ext3_count_free (struct buffer_head * map, unsigned int numchars) unsigned long ext3_count_free (struct buffer_head * map, unsigned int numchars)
{ {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#ifdef EXT4FS_DEBUG #ifdef EXT4FS_DEBUG
static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0}; static const int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
unsigned long ext4_count_free (struct buffer_head * map, unsigned int numchars) unsigned long ext4_count_free (struct buffer_head * map, unsigned int numchars)
{ {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/sched.h> #include <linux/sched.h>
static int nibblemap[] = { 4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,0 }; static const int nibblemap[] = { 4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,0 };
static unsigned long count_free(struct buffer_head *map[], unsigned numblocks, __u32 numbits) static unsigned long count_free(struct buffer_head *map[], unsigned numblocks, __u32 numbits)
{ {
......
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