From: Sardañons@localhost, Eliel <Eliel.Sardanons@philips.edu.ar>
To: linux-kernel@vger.kernel.org
Subject: linux/mm/memory.c [ void clear_page_tables(...); ] question...
Date: Tue, 27 Mar 2001 11:54:55 -0300 [thread overview]
Message-ID: <A0C675E9DC2CD411A5870040053AEBA028413C@MAINSERVER> (raw)
Function taked from: linux/mm/memory.c
void clear_page_tables(struct mm_struct *mm, unsigned long first, int nr) {
pgd_t * page_dir = mm->pgd;
if (page_dir && page_dir != swapper_pg_dir) {
page_dir += first;
do {
free_one_pgd(page_dir);
page_dir++;
} while (--nr);
/* keep the page table cache within bounds */
check_pgt_cache();
}
}
Hello:
I'm trying to understand the code, and sorry if this is a stupid question.
Here in this function you check if mm->pgd is the swapper_pg_dir if it's you
don't clear it, but then you increment page_dir++ in the loop and you don't
check if
page_dir != swapper_pg_dir ...why? may be when you increment page_dir it
can't become swapper_pg_dir because swapper_pg_dir is always <= page_dir?..
or is something else?
Thanks in advance
Eliel Sardanons
reply other threads:[~2001-03-27 14:54 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=A0C675E9DC2CD411A5870040053AEBA028413C@MAINSERVER \
--to=sardañons@localhost \
--cc=Eliel.Sardanons@philips.edu.ar \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®