dm mpath: reduce size of struct multipath
authorMike Snitzer <snitzer@redhat.com>
Sat, 2 Jun 2012 23:29:43 +0000 (00:29 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Sat, 2 Jun 2012 23:29:43 +0000 (00:29 +0100)
commit1fbdd2b3a3cf77f77b0cdf25dd969241ea2c0ce1
tree935f78f27afba09ec1784f5bac96454b43ed718a
parent76e10d158efb6d4516018846f60c2ab5501900bc
dm mpath: reduce size of struct multipath

Move multipath structure's 'lock' and 'queue_size' members to eliminate
two 4-byte holes.  Also use a bit within a single unsigned int for each
existing flag (saves 8-bytes).  This allows future flags to be added
without each consuming an unsigned int.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-mpath.c