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 <>
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

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

Signed-off-by: Kirk True <>

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
-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
More majordomo info at

Powered by blists - more mailing lists