linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: "Tom \"spot\" Callaway" <tcallawa@redhat.com>,
	David Miller <davem@davemloft.net>,
	akpm@linux-foundation.org, mark@mtfhpc.demon.co.uk,
	linuxppc-dev@ozlabs.org, wli@holomorphy.com, linux-mm@kvack.org,
	andrea@suse.de, sparclinux@vger.kernel.org
Subject: Re: [PATCH/RFC] Rework ptep_set_access_flags and fix sun4c
Date: Wed, 23 May 2007 05:03:38 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0705230438490.14106@blonde.wat.veritas.com> (raw)
In-Reply-To: <1179874748.32247.868.camel@localhost.localdomain>

On Wed, 23 May 2007, Benjamin Herrenschmidt wrote:
> 
> > Would the "__changed && __dirty" architectures (x86, x86_64, ia64)
> > be better off saying __changed = __dirty && pte_same?  I doubt it's
> > worth bothering about.
> 
> I'd say let gcc figure it out :-)

No, I wasn't meaning the optimization, but the significance of the
boolean __changed that's returned.  If ptep_set_access_flags does
not change the pte (because !dirty or !safely_writable or whatever
that arch calls it), then ideally it ought to return false.

But it doesn't affect correctness if it sometimes says true not
false, and these arches happen to have an empty update_mmu_cache
(with lazy_mmu_prot_update currently under separate review), and
what you have follows what was already being done, and sun4c
already has to "lie": so it's rather theoretical.

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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2007-05-23  4:03 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.61.0704291345480.690@mtfhpc.demon.co.uk>
     [not found] ` <1177852457.4390.26.camel@localhost.localdomain>
     [not found]   ` <Pine.LNX.4.61.0704302159140.3178@mtfhpc.demon.co.uk>
2007-04-30 21:54     ` vm changes from linux-2.6.14 to linux-2.6.15 Andrew Morton
2007-04-30 22:04       ` David Miller, Andrew Morton
2007-04-30 22:33         ` Mark Fortescue
2007-04-30 22:42           ` David Miller, Mark Fortescue
2007-05-01  0:00         ` Benjamin Herrenschmidt
2007-05-01  0:38           ` David Miller, Benjamin Herrenschmidt
2007-05-01  1:45             ` Mark Fortescue
2007-05-01  2:05               ` Benjamin Herrenschmidt
2007-05-01 13:58                 ` Mark Fortescue
2007-05-01 21:31                   ` Benjamin Herrenschmidt
2007-05-01 23:08                     ` Mark Fortescue
2007-05-09 19:44                       ` Mark Fortescue
2007-05-09 22:48                         ` Benjamin Herrenschmidt
2007-05-10  6:19                       ` Andrew Morton
2007-05-10  6:29                         ` Benjamin Herrenschmidt
2007-05-10  7:12                           ` David Miller, Benjamin Herrenschmidt
2007-05-14 19:19                             ` Hugh Dickins
2007-05-14 21:07                               ` Benjamin Herrenschmidt
2007-05-15  6:56                                 ` Benjamin Herrenschmidt
2007-05-21 14:27                                   ` Tom "spot" Callaway
2007-05-21 22:09                                     ` Benjamin Herrenschmidt
2007-05-22  6:28                                     ` [PATCH/RFC] Rework ptep_set_access_flags and fix sun4c Benjamin Herrenschmidt
2007-05-22 17:04                                       ` Hugh Dickins
2007-05-22 22:59                                         ` Benjamin Herrenschmidt
2007-05-22 23:04                                           ` Tom "spot" Callaway
2007-05-23  4:03                                           ` Hugh Dickins [this message]
2007-05-23  4:21                                             ` Benjamin Herrenschmidt
2007-05-22 21:52                                       ` Mark Fortescue
2007-05-22 21:53                                         ` David Miller, Mark Fortescue
2007-05-22 23:29                                           ` Benjamin Herrenschmidt
2007-05-22 23:28                                         ` Benjamin Herrenschmidt

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.64.0705230438490.14106@blonde.wat.veritas.com \
    --to=hugh@veritas.com \
    --cc=akpm@linux-foundation.org \
    --cc=andrea@suse.de \
    --cc=benh@kernel.crashing.org \
    --cc=davem@davemloft.net \
    --cc=linux-mm@kvack.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=mark@mtfhpc.demon.co.uk \
    --cc=sparclinux@vger.kernel.org \
    --cc=tcallawa@redhat.com \
    --cc=wli@holomorphy.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