]> git.ipfire.org Git - thirdparty/mdadm.git/commit
DDF: use LBA_OFFSET macro instead of lba_offset field
authormwilck@arcor.de <mwilck@arcor.de>
Wed, 3 Jul 2013 20:27:56 +0000 (22:27 +0200)
committerNeilBrown <neilb@suse.de>
Mon, 8 Jul 2013 06:48:36 +0000 (16:48 +1000)
commit57a666623ddc6e0e2691ca31ed5445a91d8ef30a
tree29d9f4efffb67d1c14cbffacdaf237b574fd3419
parent94b08b7c311824ee4e2082e975641602fc365c19
DDF: use LBA_OFFSET macro instead of lba_offset field

Remove the lba_offset field from struct vcl. This field acted as
a "cache" for the address of the lba_offset field in the vd_config
structure. This isn't useful any more if there are multiple
vd_configs in a vcl.

This patch also adds __cpu_to_be64 in two places where it has been
quite obviously forgotten (ddf_set_disk, ddf_activate_spare).

Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c