mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Linux 3.11 compat: Replace num_physpages with totalram_pages
num_physpages was removed by torvalds/linux@cfa11e08ed, so lets replace it with totalram_pages. This is a bug fix as much as it is a compatibility fix because num_physpages did not reflect the number of pages actually available to the kernel: http://lkml.indiana.edu/hypermail/linux/kernel/0908.2/01001.html Also, there are known issues with memory calculations when ZFS is in a Xen dom0. There is a chance that using totalram_pages could resolve them. This conjecture is untested at the time of writing. Signed-off-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #273
This commit is contained in:
committed by
Brian Behlendorf
parent
0b15402db3
commit
ba06298072
@@ -41,7 +41,7 @@
|
||||
*/
|
||||
#define membar_producer() smp_wmb()
|
||||
|
||||
#define physmem num_physpages
|
||||
#define physmem totalram_pages
|
||||
#define freemem nr_free_pages()
|
||||
#define availrmem spl_kmem_availrmem()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user