[PATCH v3] makedumpfile: fix max_mapnr issue on system has over 44-bit addressing

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

 



(2013/10/15 14:58), HATAYAMA Daisuke wrote:
> (2013/10/14 21:16), Jingbai Ma wrote:
> <cut>

>> @@ -2793,7 +2806,7 @@ initialize_bitmap_memory(void)
>>       bmp->offset = bitmap_offset + bitmap_len / 2;
>>       info->bitmap_memory = bmp;
>>
>> -    max_sect_len = divideup(dh->max_mapnr, BITMAP_SECT_LEN);
>> +    max_sect_len = divideup(kh->max_mapnr_64, BITMAP_SECT_LEN);
>>       info->valid_pages = calloc(sizeof(ulong), max_sect_len);
>
> Ah, please here needs to be fixed, too. Here should have been
> used sizeof(int) but now sizeof(off_t) should be used.
>

This is wrong. Please ignore.

-- 
Thanks.
HATAYAMA, Daisuke




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux