* Kernel RSS statistics
@ 2000-05-19 9:16 Ralf Baechle
0 siblings, 0 replies; only message in thread
From: Ralf Baechle @ 2000-05-19 9:16 UTC (permalink / raw)
To: linux-mm
mm/memory.c, function zap_page_range has the following code in it:
/*
* Update rss for the mm_struct (not necessarily current->mm)
*/
if (mm->rss > 0) {
mm->rss -= freed;
if (mm->rss < 0)
mm->rss = 0;
}
But mm->rss is an unsigned long, so the condition mm->rss < 0 cannot
ever get true. Anyway, assuming it'd be signed I don't see how it
should ever get zero unless the RSS statistics is broken?
Ralf
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-05-19 10:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-19 9:16 Kernel RSS statistics Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox