Whamcloud - gitweb
LU-4856 misc: Reduce exposure to overflow on page counters. 37/10537/8
authorStephen Champion <schamp@sgi.com>
Tue, 26 Aug 2014 12:12:40 +0000 (05:12 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 25 Sep 2014 02:58:25 +0000 (02:58 +0000)
commite12bbee8207c41b2be5c8bb848f03bb81e75b025
tree26997fb6ba840fe7f6884aef176392e4ffd58a89
parent5655ee76f5c7573c9ad076a92df6388f27b65196
LU-4856 misc: Reduce exposure to overflow on page counters.

When the number of an object in use or circulation is tied to memory
size of the system, very large memory systems can overflow 32 bit
counters.  This patch addresses overflow on page counters in the osc LRU
and obd accounting.

Signed-off-by: Stephen Champion <schamp@sgi.com>
Change-Id: I8deff55d7cc9774722f3dc38a2c7b15877e698f0
Reviewed-on: http://review.whamcloud.com/10537
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
16 files changed:
libcfs/include/libcfs/user-lock.h
lustre/include/lclient.h
lustre/include/obd.h
lustre/include/obd_support.h
lustre/ldlm/ldlm_lib.c
lustre/llite/llite_lib.c
lustre/llite/lproc_llite.c
lustre/llite/rw.c
lustre/obdclass/class_obd.c
lustre/obdclass/linux/linux-sysctl.c
lustre/osc/lproc_osc.c
lustre/osc/osc_cache.c
lustre/osc/osc_internal.h
lustre/osc/osc_io.c
lustre/osc/osc_page.c
lustre/osc/osc_request.c