ext4: mark file-local functions and variables as static
authorLukas Czerner <lczerner@redhat.com>
Wed, 23 Feb 2011 17:22:49 +0000 (12:22 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 23 Feb 2011 17:22:49 +0000 (12:22 -0500)
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c
fs/ext4/super.c

index d1fe09aea73dc92419b0bf574694b6add33d7d8e..ae4d7f5edbbf1493f6d7da728a03f5935cd554b7 100644 (file)
@@ -4753,7 +4753,8 @@ static int ext4_trim_extent(struct super_block *sb, int start, int count,
  * bitmap. Then issue a TRIM command on this extent and free the extent in
  * the group buddy bitmap. This is done until whole group is scanned.
  */
-ext4_grpblk_t ext4_trim_all_free(struct super_block *sb, struct ext4_buddy *e4b,
+static ext4_grpblk_t
+ext4_trim_all_free(struct super_block *sb, struct ext4_buddy *e4b,
                ext4_grpblk_t start, ext4_grpblk_t max, ext4_grpblk_t minblocks)
 {
        void *bitmap;
index a1ac24b6a758a1dfc9690ba297d75a18aebb3af1..1539cf5597847cefe9f1d10079464a4fcfa2dc7f 100644 (file)
@@ -54,9 +54,9 @@
 
 static struct proc_dir_entry *ext4_proc_root;
 static struct kset *ext4_kset;
-struct ext4_lazy_init *ext4_li_info;
-struct mutex ext4_li_mtx;
-struct ext4_features *ext4_feat;
+static struct ext4_lazy_init *ext4_li_info;
+static struct mutex ext4_li_mtx;
+static struct ext4_features *ext4_feat;
 
 static int ext4_load_journal(struct super_block *, struct ext4_super_block *,
                             unsigned long journal_devnum);