From: Hugh Dickins <hugh@veritas.com>
To: John Stoffel <stoffel@casc.com>
Cc: Marcelo Tosatti <marcelo@conectiva.com.br>,
Linus Torvalds <torvalds@transmeta.com>,
lkml <linux-kernel@vger.kernel.org>,
linux-mm@kvack.org
Subject: Re: [PATCH] Reap dead swap cache earlier v2
Date: Thu, 7 Jun 2001 16:44:06 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.21.0106071640410.1596-100000@localhost.localdomain> (raw)
In-Reply-To: <15135.37871.373389.465893@gargle.gargle.HOWL>
On Thu, 7 Jun 2001, John Stoffel wrote:
> Shouldn't the "swap_count(page) == 1" check be earlier in the if
> statement, so we can fall through more quickly if there is no work to
> be done? A small optimization, but putting the common cases first
> will help.
I don't think so: the out-of-line swap_count() function is considerably
more complicated than the macros and inline functions tested before it.
Hugh
--
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-mm.org/
next prev parent reply other threads:[~2001-06-07 15:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-06 20:07 Marcelo Tosatti
2001-06-07 14:47 ` John Stoffel
2001-06-07 15:44 ` Hugh Dickins [this message]
2001-06-07 19:07 ` Jonathan Morton
2001-06-07 17:38 ` Marcelo Tosatti
2001-06-07 19:31 ` Jonathan Morton
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=Pine.LNX.4.21.0106071640410.1596-100000@localhost.localdomain \
--to=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=marcelo@conectiva.com.br \
--cc=stoffel@casc.com \
--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