diff options
author | Sandeep K Sinha <sandeepksinha@gmail.com> | 2009-06-16 02:56:13 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-06-16 02:56:13 -0400 |
commit | 4db7cdc859f56ecf0a186e0cfb238b5bb3af2efb (patch) | |
tree | 1ab673db74f584f0c954e0556db63304bc3de81c /drivers/md/linear.h | |
parent | 45d4582f219619e368ea91ea1189085e1c5f1969 (diff) |
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>
Diffstat (limited to 'drivers/md/linear.h')
-rw-r--r-- | drivers/md/linear.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/linear.h b/drivers/md/linear.h index 721a878403d1..599e5c1bbb01 100644 --- a/drivers/md/linear.h +++ b/drivers/md/linear.h | |||
@@ -3,8 +3,7 @@ | |||
3 | 3 | ||
4 | struct dev_info { | 4 | struct dev_info { |
5 | mdk_rdev_t *rdev; | 5 | mdk_rdev_t *rdev; |
6 | sector_t num_sectors; | 6 | sector_t end_sector; |
7 | sector_t start_sector; | ||
8 | }; | 7 | }; |
9 | 8 | ||
10 | typedef struct dev_info dev_info_t; | 9 | typedef struct dev_info dev_info_t; |