staging: android: lowmemorykiller: neglect swap cached pages in other_file
authorVinayak Menon <vinayakm.list@gmail.com>
Wed, 26 Feb 2014 19:06:22 +0000 (00:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2014 22:51:27 +0000 (14:51 -0800)
commit058dbde928597e7a8bd04e28e77e5cfc4270591d
treea843e14b2a2b0799709d7316fff3e0265a61f579
parent12f2200f98471090228c70dc6b60b125452ca8a7
staging: android: lowmemorykiller: neglect swap cached pages in other_file

With ZRAM enabled it is observed that lowmemory killer
doesn't trigger properly. swap cached pages are
accounted in NR_FILE, and lowmemorykiller considers
this as reclaimable and adds to other_file. But these
pages can't be reclaimed unless lowmemorykiller triggers.
So subtract swap pages from other_file.

Signed-off-by: Vinayak Menon <vinayakm.list@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/lowmemorykiller.c