]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit42ec3c515a53aecd012822a0b6a757a95929bbc4
tree935f78f27afba09ec1784f5bac96454b43ed718a
parent14e79b81c3755d152f97f37063ea84a01101bc27
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