Re: [PATCH] sparc64: Fix array size reported by vmemmap_populate()

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

 



From: David Miller <davem@xxxxxxxxxxxxx>
Date: Sat, 03 Apr 2010 13:50:29 -0700 (PDT)

> From: Ben Hutchings <ben@xxxxxxxxxxxxxxx>
> Date: Sat, 03 Apr 2010 21:41:20 +0100
> 
>> vmemmap_populate() attempts to report the used index and total size of
>> vmemmap_table, but it wrongly shifts the total size so that it is
>> always shown as 0.
>> 
>> Signed-off-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx>
> 
> It's not the total, size, it's the total number of chunks that
> the area supports.

Nevermind, Ben's patch is right, I'll apply it.

VMEMMAP_SIZE is number of entries, not a size in bytes.

Further confusing things is that before the VMEMMAP_SIZE
bug fix the other month, the calculation was "correct"
:-)
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux