lkml.org 
[lkml]   [2002]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] ext2 statics
Hi,

This patch just changes some things in ext2 to be static.

I am not sure who the ext2 maintainer is, but I am pretty sure it
is not Remy Card who is listed in the MAINTAINERS file.

--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff -ruN 2.5.23/fs/ext2/balloc.c 2.5.23-sfr.3/fs/ext2/balloc.c
--- 2.5.23/fs/ext2/balloc.c Sat May 25 21:20:13 2002
+++ 2.5.23-sfr.3/fs/ext2/balloc.c Thu Jun 20 12:34:56 2002
@@ -602,7 +602,7 @@
}
}

-int ext2_group_sparse(int group)
+static int ext2_group_sparse(int group)
{
return (test_root(group, 3) || test_root(group, 5) ||
test_root(group, 7));
diff -ruN 2.5.23/fs/ext2/ext2.h 2.5.23-sfr.3/fs/ext2/ext2.h
--- 2.5.23/fs/ext2/ext2.h Mon Apr 15 06:13:17 2002
+++ 2.5.23-sfr.3/fs/ext2/ext2.h Thu Jun 20 12:42:35 2002
@@ -92,10 +92,7 @@
extern void ext2_warning (struct super_block *, const char *, const char *, ...)
__attribute__ ((format (printf, 3, 4)));
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 int ext2_remount (struct super_block *, int *, char *);
-extern int ext2_statfs (struct super_block *, struct statfs *);

/*
* Inodes and files operations
diff -ruN 2.5.23/fs/ext2/super.c 2.5.23-sfr.3/fs/ext2/super.c
--- 2.5.23/fs/ext2/super.c Sat May 25 21:20:13 2002
+++ 2.5.23-sfr.3/fs/ext2/super.c Thu Jun 20 12:42:54 2002
@@ -31,6 +31,8 @@

static void ext2_sync_super(struct super_block *sb,
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];

@@ -123,7 +125,7 @@
*/
}

-void ext2_put_super (struct super_block * sb)
+static void ext2_put_super (struct super_block * sb)
{
int db_count;
int i;
@@ -772,7 +774,7 @@
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_super_block * es;
@@ -827,7 +829,7 @@
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);
unsigned long overhead;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.044 / U:0.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site