aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@infradead.org>2006-01-14 16:20:43 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-14 21:27:06 -0500
commit858119e159384308a5dde67776691a2ebf70df0f (patch)
treef360768f999d51edc0863917ce0bf79e88c0ec4c /drivers/md/raid5.c
parentb0a9499c3dd50d333e2aedb7e894873c58da3785 (diff)
[PATCH] Unlinline a bunch of other functions
Remove the "inline" keyword from a bunch of big functions in the kernel with the goal of shrinking it by 30kb to 40kb Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Acked-by: Jeff Garzik <jgarzik@pobox.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 54f4a9847e38..25976bfb6f9c 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -69,7 +69,7 @@
69 69
70static void print_raid5_conf (raid5_conf_t *conf); 70static void print_raid5_conf (raid5_conf_t *conf);
71 71
72static inline void __release_stripe(raid5_conf_t *conf, struct stripe_head *sh) 72static void __release_stripe(raid5_conf_t *conf, struct stripe_head *sh)
73{ 73{
74 if (atomic_dec_and_test(&sh->count)) { 74 if (atomic_dec_and_test(&sh->count)) {
75 if (!list_empty(&sh->lru)) 75 if (!list_empty(&sh->lru))
@@ -118,7 +118,7 @@ static inline void remove_hash(struct stripe_head *sh)
118 hlist_del_init(&sh->hash); 118 hlist_del_init(&sh->hash);
119} 119}
120 120
121static inline void insert_hash(raid5_conf_t *conf, struct stripe_head *sh) 121static void insert_hash(raid5_conf_t *conf, struct stripe_head *sh)
122{ 122{
123 struct hlist_head *hp = stripe_hash(conf, sh->sector); 123 struct hlist_head *hp = stripe_hash(conf, sh->sector);
124 124
@@ -178,7 +178,7 @@ static int grow_buffers(struct stripe_head *sh, int num)
178 178
179static void raid5_build_block (struct stripe_head *sh, int i); 179static void raid5_build_block (struct stripe_head *sh, int i);
180 180
181static inline void init_stripe(struct stripe_head *sh, sector_t sector, int pd_idx) 181static void init_stripe(struct stripe_head *sh, sector_t sector, int pd_idx)
182{ 182{
183 raid5_conf_t *conf = sh->raid_conf; 183 raid5_conf_t *conf = sh->raid_conf;
184 int disks = conf->raid_disks, i; 184 int disks = conf->raid_disks, i;
@@ -1415,7 +1415,7 @@ static void handle_stripe(struct stripe_head *sh)
1415 } 1415 }
1416} 1416}
1417 1417
1418static inline void raid5_activate_delayed(raid5_conf_t *conf) 1418static void raid5_activate_delayed(raid5_conf_t *conf)
1419{ 1419{
1420 if (atomic_read(&conf->preread_active_stripes) < IO_THRESHOLD) { 1420 if (atomic_read(&conf->preread_active_stripes) < IO_THRESHOLD) {
1421 while (!list_empty(&conf->delayed_list)) { 1421 while (!list_empty(&conf->delayed_list)) {
@@ -1431,7 +1431,7 @@ static inline void raid5_activate_delayed(raid5_conf_t *conf)
1431 } 1431 }
1432} 1432}
1433 1433
1434static inline void activate_bit_delay(raid5_conf_t *conf) 1434static void activate_bit_delay(raid5_conf_t *conf)
1435{ 1435{
1436 /* device_lock is held */ 1436 /* device_lock is held */
1437 struct list_head head; 1437 struct list_head head;