diff options
author | Sandeep K Sinha <sandeepksinha@gmail.com> | 2009-06-16 02:55:26 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-06-16 02:55:26 -0400 |
commit | 45d4582f219619e368ea91ea1189085e1c5f1969 (patch) | |
tree | 15c38d1090d67ecb600c395a5155f2630804d851 /drivers/md/linear.h | |
parent | 070ec55d07157a3041f92654135c3c6e2eaaf901 (diff) |
md: Removal of hash table in linear raid
Get rid of sector_div and hash table for linear raid and replace
with a linear search in which_dev.
The hash table adds a lot of complexity for little if any gain.
Ultimately a binary search will be used which will have smaller
cache foot print, a similar number of memory access, and no
divisions.
Signed-off-by: Sandeep K Sinha <sandeepksinha@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/linear.h')
-rw-r--r-- | drivers/md/linear.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/md/linear.h b/drivers/md/linear.h index 76078f1cded0..721a878403d1 100644 --- a/drivers/md/linear.h +++ b/drivers/md/linear.h | |||
@@ -12,12 +12,7 @@ typedef struct dev_info dev_info_t; | |||
12 | struct linear_private_data | 12 | struct linear_private_data |
13 | { | 13 | { |
14 | struct linear_private_data *prev; /* earlier version */ | 14 | struct linear_private_data *prev; /* earlier version */ |
15 | dev_info_t **hash_table; | ||
16 | sector_t spacing; | ||
17 | sector_t array_sectors; | 15 | sector_t array_sectors; |
18 | int sector_shift; /* shift before dividing | ||
19 | * by spacing | ||
20 | */ | ||
21 | dev_info_t disks[0]; | 16 | dev_info_t disks[0]; |
22 | }; | 17 | }; |
23 | 18 | ||