diff options
author | Richard Yao <[email protected]> | 2013-08-07 04:50:04 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-08-08 09:14:29 -0700 |
commit | ba062980728bbd09c4b829f5d801a773af7381cf (patch) | |
tree | 07999eb6676dba9fe972f995320f56da078a6d32 /include | |
parent | 0b15402db3819115953127078192d804ff36b27f (diff) |
Linux 3.11 compat: Replace num_physpages with totalram_pages
num_physpages was removed by
torvalds/linux@cfa11e08ed39eb28a9eff9a907b20913020c69b5, 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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #273
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/vmsystm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/vmsystm.h b/include/sys/vmsystm.h index 34aea2b98..909749103 100644 --- a/include/sys/vmsystm.h +++ b/include/sys/vmsystm.h @@ -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() |