Re: [PATCH 3/3] mm,generic: only flush the local TLB in ptep_set_access_flags

From: Linus Torvalds
Date: Fri Oct 26 2012 - 14:49:01 EST


On Fri, Oct 26, 2012 at 11:46 AM, Rik van Riel <riel@xxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/