Fix testing and setting set_options bitmap
authorAkinobu Mita <akinobu.mita@gmail.com>
Thu, 25 Jun 2015 13:39:41 +0000 (22:39 +0900)
committerJens Axboe <axboe@fb.com>
Thu, 25 Jun 2015 15:22:15 +0000 (09:22 -0600)
commite9d686d62ee544098a3d2534574b7ae9c22f4163
treee9bda014c34528288fe1ea28a9de9f729fdb38d7
parentcdf91594d537b59588f3a95c4cc44336326faaf3
Fix testing and setting set_options bitmap

set_options bitmap is an array of uint64_t.  But while testing and
setting a bit in the bitmap, the bit mask is calculated with an
unsigned long value.  For the systems which have 32-bit long type,
upper 32-bit cannot be set correctly.

Fix it by using (uint64_t)1 instead of 1UL to calculate correct bit
mask.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
options.c