chiark / gitweb /
readahead-common: fix total memory size detection
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 10 Jun 2011 12:37:21 +0000 (14:37 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 10 Jun 2011 12:57:12 +0000 (14:57 +0200)
commit597b99b09a007dfa8ddfce31c480765b0c7baa6a
tree426014cb58ea155a3c53c7523688c38fea53eb0a
parentdc725264f34f3a81eb47b7472f4484f849e0461d
readahead-common: fix total memory size detection

sysinfo returns the total memory size in multiples of mem_unit bytes.
As long as the size in bytes fits into unsigned long, the kernel uses
mem_unit = 1, but this is not true on i386 with more than 4 GB RAM.

https://bugzilla.redhat.com/show_bug.cgi?id=712341
src/readahead-common.c