Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758958Ab2JZStL (ORCPT ); Fri, 26 Oct 2012 14:49:11 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:58345 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758899Ab2JZStK (ORCPT ); Fri, 26 Oct 2012 14:49:10 -0400 MIME-Version: 1.0 In-Reply-To: <20121026144615.2276cd59@dull> References: <20121025121617.617683848@chello.nl> <20121025124832.840241082@chello.nl> <5089F5B5.1050206@redhat.com> <508A0A0D.4090001@redhat.com> <508A8D31.9000106@redhat.com> <20121026132601.GC9886@gmail.com> <20121026144615.2276cd59@dull> From: Linus Torvalds Date: Fri, 26 Oct 2012 11:48:48 -0700 X-Google-Sender-Auth: f90_KNuYczjqbQ06bZQaaJW9Sn4 Message-ID: Subject: Re: [PATCH 3/3] mm,generic: only flush the local TLB in ptep_set_access_flags To: Rik van Riel Cc: Ingo Molnar , Andi Kleen , Michel Lespinasse , Peter Zijlstra , Andrea Arcangeli , Mel Gorman , Johannes Weiner , Thomas Gleixner , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 840 Lines: 21 On Fri, Oct 26, 2012 at 11:46 AM, Rik van Riel wrote: > > The function ptep_set_access_flags is only ever used to upgrade > access permissions to a page. NOTE: It's *not* "access permissions". It's "access flags". Big difference. This is not about permissions at all. The access flags are the Accessed and Dirty bits. And the dirty bit is never *cleared* by this function, it's only ever potentially set. That, together with the fact that the accessed flag is "best effort" rather than exact, is what makes this function so special to begin with. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/