summaryrefslogtreecommitdiffstats
path: root/drivers/md/linear.h
diff options
context:
space:
mode:
authorSandeep K Sinha <sandeepksinha@gmail.com>2009-06-16 16:55:26 +1000
committerNeilBrown <neilb@suse.de>2009-06-16 16:55:26 +1000
commit45d4582f219619e368ea91ea1189085e1c5f1969 (patch)
tree15c38d1090d67ecb600c395a5155f2630804d851 /drivers/md/linear.h
parent070ec55d07157a3041f92654135c3c6e2eaaf901 (diff)
downloadop-kernel-dev-45d4582f219619e368ea91ea1189085e1c5f1969.zip
op-kernel-dev-45d4582f219619e368ea91ea1189085e1c5f1969.tar.gz
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.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/md/linear.h b/drivers/md/linear.h
index 76078f1..721a878 100644
--- a/drivers/md/linear.h
+++ b/drivers/md/linear.h
@@ -12,12 +12,7 @@ typedef struct dev_info dev_info_t;
struct linear_private_data
{
struct linear_private_data *prev; /* earlier version */
- dev_info_t **hash_table;
- sector_t spacing;
sector_t array_sectors;
- int sector_shift; /* shift before dividing
- * by spacing
- */
dev_info_t disks[0];
};
OpenPOWER on IntegriCloud