Commit 6dceb11b authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Linus Torvalds

[PATCH] ext2 statics

This patch just changes some things in ext2 to be static.
parent 8d50caa1
...@@ -602,7 +602,7 @@ static inline int test_root(int a, int b) ...@@ -602,7 +602,7 @@ static inline int test_root(int a, int b)
} }
} }
int ext2_group_sparse(int group) static int ext2_group_sparse(int group)
{ {
return (test_root(group, 3) || test_root(group, 5) || return (test_root(group, 3) || test_root(group, 5) ||
test_root(group, 7)); test_root(group, 7));
......
...@@ -92,10 +92,7 @@ extern NORET_TYPE void ext2_panic (struct super_block *, const char *, ...@@ -92,10 +92,7 @@ extern NORET_TYPE void ext2_panic (struct super_block *, const char *,
extern void ext2_warning (struct super_block *, const char *, const char *, ...) extern void ext2_warning (struct super_block *, const char *, const char *, ...)
__attribute__ ((format (printf, 3, 4))); __attribute__ ((format (printf, 3, 4)));
extern void ext2_update_dynamic_rev (struct super_block *sb); extern void ext2_update_dynamic_rev (struct super_block *sb);
extern void ext2_put_super (struct super_block *);
extern void ext2_write_super (struct super_block *); extern void ext2_write_super (struct super_block *);
extern int ext2_remount (struct super_block *, int *, char *);
extern int ext2_statfs (struct super_block *, struct statfs *);
/* /*
* Inodes and files operations * Inodes and files operations
......
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
static void ext2_sync_super(struct super_block *sb, static void ext2_sync_super(struct super_block *sb,
struct ext2_super_block *es); struct ext2_super_block *es);
static int ext2_remount (struct super_block * sb, int * flags, char * data);
static int ext2_statfs (struct super_block * sb, struct statfs * buf);
static char error_buf[1024]; static char error_buf[1024];
...@@ -123,7 +125,7 @@ void ext2_update_dynamic_rev(struct super_block *sb) ...@@ -123,7 +125,7 @@ void ext2_update_dynamic_rev(struct super_block *sb)
*/ */
} }
void ext2_put_super (struct super_block * sb) static void ext2_put_super (struct super_block * sb)
{ {
int db_count; int db_count;
int i; int i;
...@@ -772,7 +774,7 @@ void ext2_write_super (struct super_block * sb) ...@@ -772,7 +774,7 @@ void ext2_write_super (struct super_block * sb)
unlock_kernel(); unlock_kernel();
} }
int ext2_remount (struct super_block * sb, int * flags, char * data) static int ext2_remount (struct super_block * sb, int * flags, char * data)
{ {
struct ext2_sb_info * sbi = EXT2_SB(sb); struct ext2_sb_info * sbi = EXT2_SB(sb);
struct ext2_super_block * es; struct ext2_super_block * es;
...@@ -827,7 +829,7 @@ int ext2_remount (struct super_block * sb, int * flags, char * data) ...@@ -827,7 +829,7 @@ int ext2_remount (struct super_block * sb, int * flags, char * data)
return 0; return 0;
} }
int ext2_statfs (struct super_block * sb, struct statfs * buf) static int ext2_statfs (struct super_block * sb, struct statfs * buf)
{ {
struct ext2_sb_info *sbi = EXT2_SB(sb); struct ext2_sb_info *sbi = EXT2_SB(sb);
unsigned long overhead; unsigned long overhead;
......
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