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)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:54:12 +0000 (13:54 -0800)
commitb0e7a582b2264cdf75874dcd8df915b6b4427755
tree2ff1aebfc6c9ecfd88a7c8d65a543230810c8c68
parentb1d1b7187c11d9fc583af44376fcd7776c51a8e9
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