diff options
author | NeilBrown <neilb@suse.de> | 2006-01-06 03:20:33 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:34:06 -0500 |
commit | fccddba060f2b4916a30aa27acc3d03b01bb981e (patch) | |
tree | 92fbb81ab3b1fdbbe8de9ba2ebb91ac68c57b2a0 /include | |
parent | 9ffae0cf3ea02f75d163922accfd3e592d87adde (diff) |
[PATCH] md: tidy up raid5/6 hash table code
- replace open-coded hash chain with hlist macros
- Fix hash-table size at one page - it is already quite generous, so there
will never be a need to use multiple pages, so no need for __get_free_pages
No functional change.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/raid/raid5.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/raid/raid5.h b/include/linux/raid/raid5.h index 28fcd7533ac4..394da8207b34 100644 --- a/include/linux/raid/raid5.h +++ b/include/linux/raid/raid5.h | |||
@@ -126,7 +126,7 @@ | |||
126 | */ | 126 | */ |
127 | 127 | ||
128 | struct stripe_head { | 128 | struct stripe_head { |
129 | struct stripe_head *hash_next, **hash_pprev; /* hash pointers */ | 129 | struct hlist_node hash; |
130 | struct list_head lru; /* inactive_list or handle_list */ | 130 | struct list_head lru; /* inactive_list or handle_list */ |
131 | struct raid5_private_data *raid_conf; | 131 | struct raid5_private_data *raid_conf; |
132 | sector_t sector; /* sector of this row */ | 132 | sector_t sector; /* sector of this row */ |
@@ -204,7 +204,7 @@ struct disk_info { | |||
204 | }; | 204 | }; |
205 | 205 | ||
206 | struct raid5_private_data { | 206 | struct raid5_private_data { |
207 | struct stripe_head **stripe_hashtbl; | 207 | struct hlist_head *stripe_hashtbl; |
208 | mddev_t *mddev; | 208 | mddev_t *mddev; |
209 | struct disk_info *spare; | 209 | struct disk_info *spare; |
210 | int chunk_size, level, algorithm; | 210 | int chunk_size, level, algorithm; |