linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@debian.org>
To: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: akpm@osdl.org, linux-arch@vger.kernel.org, linux-mm@kvack.org
Subject: Re: TLB flush optimization on s/390.
Date: Mon, 6 Oct 2003 19:44:41 +0100	[thread overview]
Message-ID: <20031006184441.GC24824@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20031006180456.GA14206@mschwid3.boeblingen.de.ibm.com>

On Mon, Oct 06, 2003 at 08:04:56PM +0200, Martin Schwidefsky wrote:
>  * ptep_establish: Establish a new mapping. This sets a pte entry to a
>    page table and flushes the tlb of the old entry on all cpus if it
>    exists. This is more or less what establish_pte in mm/memory.c does
>    right now but without the update_mmu_cache call.
> 
>  * ptep_test_and_clear_and_flush_young. Do what ptep_test_and_clear_young
>    does and flush the tlb.
> 
>  * ptep_test_and_clear_and_flush_dirty. Do what ptep_test_and_clear_dirty
>    does and flush the tlb.
> 
>  * ptep_get_and_clear_and_flush: Do what ptep_get_and_clear does and
>    flush the tlb.

could we at least do away with one of the "and"s?

ptep_test_clear_and_flush_young()
ptep_test_clear_and_flush_dirty()
ptep_get_clear_and_flush()

I'm also not quite sure why we need the "get" at all.. ptep_clear()
and ptep_clear_and_flush() would seem sufficient.  Mind you, I've never
been sure why it needed to be ptep_test_and_clear_young() either.
ptep_clear_young() (and hence ptep_clear_young_flush) seems quite a
sufficient name.

Indeed, ptep_test_and_clear_and_flush_young implies that you flush the
young bit rather than being a combination of ptep_test_and_clear_young()
and flush tlb.  So how about:

ptep_clear_young_flush()
ptep_clear_dirty_flush()
ptep_clear_flush()

and commit to renaming the other ptep functions in 2.7?

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
--
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/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

  reply	other threads:[~2003-10-06 18:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-06 18:04 Martin Schwidefsky
2003-10-06 18:44 ` Matthew Wilcox [this message]
2003-10-07  8:29 ` David S. Miller
2003-10-09 12:38 Martin Schwidefsky
2003-10-10  7:00 ` David S. Miller
2003-10-10  8:20 Martin Schwidefsky
2003-10-10  8:50 ` David S. Miller
2003-10-10  9:01   ` Andi Kleen
2003-10-10  8:37 Martin Schwidefsky

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=20031006184441.GC24824@parcelfarce.linux.theplanet.co.uk \
    --to=willy@debian.org \
    --cc=akpm@osdl.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=schwidefsky@de.ibm.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