Whamcloud - gitweb
LU-506 FC15: update shrinker to use shrink_control callback
authoryangsheng <ys@whamcloud.com>
Fri, 9 Sep 2011 16:15:13 +0000 (00:15 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 22 Nov 2011 23:16:24 +0000 (18:16 -0500)
commit35844df97415ce3b736104ec34927609a99d637b
tree7a785a64bcb76ad2a94a75e892570144bd4d72fa
parentbf977ae5a02765f86b1920ae207cc1fe328011cb
LU-506 FC15: update shrinker to use shrink_control callback

Linux 3.0 memory pressure shrinker now takes "struct shrink_control" as
its argument instead of "nr_to_scan" and "gfp_mask". This was backported
to Fedora 15.

Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: Id9f6a9e10efe785d2837d1ad73098d2808a2f076
Reviewed-on: http://review.whamcloud.com/1331
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/linux/linux-mem.h
lustre/ldlm/ldlm_pool.c
lustre/obdclass/lu_object.c
lustre/ptlrpc/sec_bulk.c