From: Ralf Baechle <ralf@uni-koblenz.de>
To: linux-mm@kvack.org
Subject: Kernel RSS statistics
Date: Fri, 19 May 2000 11:16:42 +0200 [thread overview]
Message-ID: <20000519111642.D702@uni-koblenz.de> (raw)
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/
reply other threads:[~2000-05-19 10:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20000519111642.D702@uni-koblenz.de \
--to=ralf@uni-koblenz.de \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox