mm: vmscan: Add a debug file for shrinkers
authorRebecca Schultz Zavin <rebecca@android.com>
Fri, 5 Oct 2012 20:54:59 +0000 (13:54 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:10 +0000 (14:16 -0700)
commitad42da0cc73761e405128e71c58eda40c25367d4
tree0027c7899b701fd9571e374e3b69ab677008d1ca
parent148984e00a97cdb12882d1e71719907f51f03b5c
mm: vmscan: Add a debug file for shrinkers

This patch adds a debugfs file called "shrinker" when read this calls
all the shrinkers in the system with nr_to_scan set to zero and prints
the result.  These results are the number of objects the shrinkers have
available and can thus be used an indication of the total memory
that would be availble to the system if a shrink occurred.

Change-Id: Ied0ee7caff3d2fc1cb4bb839aaafee81b5b0b143
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
mm/vmscan.c