Re: Why the field 'depth use different data types in sbitmap and sbitmap_word

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 1/9/2017 7:08 AM, Jens Axboe wrote:
> On 01/07/2017 06:21 AM, Wang Sheng-Hui wrote:
>> Hi,
>>
>> Sorry to trouble you.
>>
>> I have one question about the define of struct sbitmap & sbitmap_word:
>>       In sbitmap_word, the field depth is 'unsigned long', but in sbitmap, the field depth is 'unsigned int'.
>>       Why they use different data types?
> No particular reason. The bit ops use unsigned long, so that is why
> sbitmap_word uses it. unsigned int should be enough for sbitmap in
> general.
>
Got it, Jens.
--
To unsubscribe from this list: send the line "unsubscribe linux-block" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux