md: Removing num_sector and replacing start_sector with end_sector

Remove num_sectors from dev_info and replace start_sector with
end_sector.  This makes a lot of comparisons much simpler.

Signed-off-by: Sandeep K Sinha <sandeepksinha@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Sandeep K Sinha
2009-06-16 16:56:13 +10:00
committed by NeilBrown
parent 45d4582f21
commit 4db7cdc859
2 changed files with 19 additions and 21 deletions

View File

@@ -3,8 +3,7 @@
struct dev_info {
mdk_rdev_t *rdev;
sector_t num_sectors;
sector_t start_sector;
sector_t end_sector;
};
typedef struct dev_info dev_info_t;