[PATCH] meminfo: add Cached underflow check
authorMartin Hicks <mort@sgi.com>
Sat, 16 Apr 2005 22:24:08 +0000 (15:24 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:24:08 +0000 (15:24 -0700)
commit4c4c402d6caba5d938ffbbb49961659ecac709d4
tree98c85314a6c8d753e27163e729a0dbc493018ce1
parent76c3073a888ae7f4790a146784bb5c34fc24b9d2
[PATCH] meminfo: add Cached underflow check

Working on some code lately I've been getting huge values for "Cached".
The cause is that get_page_cache_size() is an approximate value, and for a
sufficiently small returned value of get_page_cache_size() the value
underflows.

Signed-off-by: Martin Hicks <mort@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/proc_misc.c