aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/balloc.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2014-05-12 10:50:23 -0400
committerTheodore Ts'o <tytso@mit.edu>2014-05-12 10:50:23 -0400
commitc197855ea14175a25003c276824689e8ba318e53 (patch)
treeb01d69bebe4c4dc5ca276447ec9d16bece30c723 /fs/ext4/balloc.c
parente674e5cbd0942b42a12106ac0be8330f4301bef4 (diff)
ext4: make local functions static
I have been running make namespacecheck to look for unneeded globals, and found these in ext4. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/balloc.c')
-rw-r--r--fs/ext4/balloc.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
index 59c3ba8bb8ea..0762d143e252 100644
--- a/fs/ext4/balloc.c
+++ b/fs/ext4/balloc.c
@@ -83,9 +83,9 @@ static inline int ext4_block_in_group(struct super_block *sb,
83/* Return the number of clusters used for file system metadata; this 83/* Return the number of clusters used for file system metadata; this
84 * represents the overhead needed by the file system. 84 * represents the overhead needed by the file system.
85 */ 85 */
86unsigned ext4_num_overhead_clusters(struct super_block *sb, 86static unsigned ext4_num_overhead_clusters(struct super_block *sb,
87 ext4_group_t block_group, 87 ext4_group_t block_group,
88 struct ext4_group_desc *gdp) 88 struct ext4_group_desc *gdp)
89{ 89{
90 unsigned num_clusters; 90 unsigned num_clusters;
91 int block_cluster = -1, inode_cluster = -1, itbl_cluster = -1, i, c; 91 int block_cluster = -1, inode_cluster = -1, itbl_cluster = -1, i, c;
@@ -176,9 +176,10 @@ static unsigned int num_clusters_in_group(struct super_block *sb,
176} 176}
177 177
178/* Initializes an uninitialized block bitmap */ 178/* Initializes an uninitialized block bitmap */
179void ext4_init_block_bitmap(struct super_block *sb, struct buffer_head *bh, 179static void ext4_init_block_bitmap(struct super_block *sb,
180 ext4_group_t block_group, 180 struct buffer_head *bh,
181 struct ext4_group_desc *gdp) 181 ext4_group_t block_group,
182 struct ext4_group_desc *gdp)
182{ 183{
183 unsigned int bit, bit_max; 184 unsigned int bit, bit_max;
184 struct ext4_sb_info *sbi = EXT4_SB(sb); 185 struct ext4_sb_info *sbi = EXT4_SB(sb);
@@ -351,10 +352,10 @@ static ext4_fsblk_t ext4_valid_block_bitmap(struct super_block *sb,
351 return 0; 352 return 0;
352} 353}
353 354
354void ext4_validate_block_bitmap(struct super_block *sb, 355static void ext4_validate_block_bitmap(struct super_block *sb,
355 struct ext4_group_desc *desc, 356 struct ext4_group_desc *desc,
356 ext4_group_t block_group, 357 ext4_group_t block_group,
357 struct buffer_head *bh) 358 struct buffer_head *bh)
358{ 359{
359 ext4_fsblk_t blk; 360 ext4_fsblk_t blk;
360 struct ext4_group_info *grp = ext4_get_group_info(sb, block_group); 361 struct ext4_group_info *grp = ext4_get_group_info(sb, block_group);