lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 6 Jun 2007 02:30:48 -0700 (PDT)
From:	Kirk True <kirk@...tardgrain.com>
To:	linux-ext4@...r.kernel.org
Subject: [PATCH] Add static to functions local to fs/ext4/balloc.c 

ext4_reserve_local, ext4_rebalance_reservation, and
ext4_reserve_global are all local to balloc.c and can be made
static.

This is against the 2.6.22-rc4-ext4-1 tree that was announced
on:

    http://lists.openwall.net/linux-ext4/2007/06/05/15

Signed-off-by: Kirk True <kirk@...tardgrain.com>

Index: linux-2.6.22-rc4/fs/ext4/balloc.c
===================================================================
diff -uprN linux-2.6.22-rc4-orig/fs/ext4/balloc.c linux-2.6.22-rc4/fs/ext4/balloc.c
--- linux-2.6.22-rc4-orig/fs/ext4/balloc.c      2007-06-06 02:02:29.000000000 -0700
+++ linux-2.6.22-rc4/fs/ext4/balloc.c   2007-06-06 01:59:24.000000000 -0700
@@ -1868,7 +1868,7 @@ struct ext4_reservation_slot {
 } ____cacheline_aligned;

-
-int ext4_reserve_local(struct super_block *sb, int blocks)
+static int ext4_reserve_local(struct super_block *sb, int blocks)
 {
        struct ext4_sb_info *sbi = EXT4_SB(sb);
        struct ext4_reservation_slot *rs;
@@ -1888,8 +1888,7 @@ int ext4_reserve_local(struct super_bloc
        return rc;
 }

-
-void ext4_rebalance_reservation(struct ext4_reservation_slot *rs, __u64 free)
+static void ext4_rebalance_reservation(struct ext4_reservation_slot *rs, __u64 free)
 {
        int i, used_slots = 0;
        __u64 chunk;
@@ -1916,7 +1915,7 @@ void ext4_rebalance_reservation(struct e
        BUG_ON(free);
 }
 
-int ext4_reserve_global(struct super_block *sb, int blocks)
+static int ext4_reserve_global(struct super_block *sb, int blocks)
 {        
        struct ext4_sb_info *sbi = EXT4_SB(sb);
        struct ext4_reservation_slot *rs;

-
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists