From: "Juan J. Quintela" <quintela@fi.udc.es>
To: "David S. Miller" <davem@redhat.com>
Cc: riel@conectiva.com.br, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, torvalds@transmeta.com
Subject: Re: [PATCH *] VM patch for 2.4.0-test8
Date: 14 Sep 2000 08:11:40 +0200 [thread overview]
Message-ID: <yttg0n3lcyr.fsf@serpe.mitica> (raw)
In-Reply-To: "David S. Miller"'s message of "Wed, 13 Sep 2000 22:25:14 -0700"
>>>>> "david" == David S Miller <davem@redhat.com> writes:
david> In page_launder() about halfway down there is this sequence of tests
david> on LRU pages:
david> if (!clearedbuf) {
david> ...
david> } else if (!page->mapping) {
david> ...
david> } else if (page_count(page) > 1) {
david> } else /* page->mapping && page_count(page) == 1 */ {
david> ...
david> }
david> Above this sequence we've done a page_cache_get. For the final case
david> in the tests above (page->mapping != NULL && page_count(page) == 1)
david> have you checked if this ever happens or is even possible?
david> If the page is a page cache page (ie. page->mapping != NULL) it
david> should hold a reference. Adding in our reference, the count should
david> always thus be > 1.
david> What did I miss?
I think nothing, I suppose that riel means > 2 and == 2, if we arrive
there when a page count of 1 we are in problems as you have told.
/me doing greping ...... <some time later>
I can only see one place where we add a page to the page cache and we
don't increase its page count, and it is in grow_buffers(). Could
somebody explain me _why_ we don't need to do a page_cache_get(page)
in that function?
Later, Juan.
--
In theory, practice and theory are the same, but in practice they
are different -- Larry McVoy
--
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/
next prev parent reply other threads:[~2000-09-14 6:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-14 4:30 Rik van Riel
2000-09-14 5:25 ` David S. Miller
2000-09-14 6:11 ` Juan J. Quintela [this message]
2000-09-14 8:18 ` David S. Miller
2000-09-14 16:53 ` Rik van Riel
2000-09-14 17:49 ` Rik van Riel
2000-09-15 17:28 ` Martin Josefsson
2000-09-15 19:37 ` Jamie Lokier
2000-09-15 21:07 ` David Ford
2000-09-15 22:04 ` Rik van Riel
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=yttg0n3lcyr.fsf@serpe.mitica \
--to=quintela@fi.udc.es \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=riel@conectiva.com.br \
--cc=torvalds@transmeta.com \
/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