Whamcloud - gitweb
LU-3974 libcfs: replace num_physpages with totalram_pages 26/7726/4
authorJames Simmons <uja.ornl@gmail.com>
Tue, 24 Sep 2013 15:55:44 +0000 (11:55 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 1 Oct 2013 11:36:13 +0000 (11:36 +0000)
commit02a976b13d16fac7708fbd1827fcc6129b7e20f3
tree5ae85cca747e3ad2ac0848f1010eba2e63c279a7
parent723613a734af240e03d9e8b42afeba442a77142d
LU-3974 libcfs: replace num_physpages with totalram_pages

Currently lustre uses an exported kernel variable
num_physpages but this variable includes also non-ram
pages and is not memory hotplug support aware. Also in
kernels 3.11 and above this variable is no longer
exported. The exported variable totalram_pages handles
the the limitations of num_physpages plus its avaliable
in all Lustre supported kernels.

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: I021fbbd99b2c8e538fc0357a676834e26d690702
Reviewed-on: http://review.whamcloud.com/7726
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Peng Tao <bergwolf@gmail.com>
14 files changed:
libcfs/include/libcfs/darwin/darwin-mem.h
libcfs/include/libcfs/linux/linux-mem.h
libcfs/include/libcfs/winnt/portals_utils.h
libcfs/libcfs/linux/linux-tracefile.c
libcfs/libcfs/winnt/winnt-tracefile.c
lustre/include/liblustre.h
lustre/ldlm/ldlm_lib.c
lustre/llite/lproc_llite.c
lustre/obdclass/class_obd.c
lustre/obdclass/linux/linux-sysctl.c
lustre/obdclass/lu_object.c
lustre/osc/lproc_osc.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/ptlrpc/sec_bulk.c