Re: [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

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux