]> Git Repo - linux.git/commit
mm: use refcounts for page_lock_anon_vma()
authorPeter Zijlstra <[email protected]>
Wed, 25 May 2011 00:12:10 +0000 (17:12 -0700)
committerLinus Torvalds <[email protected]>
Wed, 25 May 2011 15:39:19 +0000 (08:39 -0700)
commit746b18d421da7f27e948e8af1ad82b6d0309324d
treed4e756977673b7b8166c00e34a21d85c5e26ea6e
parent6111e4ca6829a0e8b092b8e5eeb6b5366091f29c
mm: use refcounts for page_lock_anon_vma()

Convert page_lock_anon_vma() over to use refcounts.  This is done to
prepare for the conversion of anon_vma from spinlock to mutex.

Sadly this inceases the cost of page_lock_anon_vma() from one to two
atomics, a follow up patch addresses this, lets keep that simple for now.

Signed-off-by: Peter Zijlstra <[email protected]>
Reviewed-by: KAMEZAWA Hiroyuki <[email protected]>
Reviewed-by: KOSAKI Motohiro <[email protected]>
Acked-by: Hugh Dickins <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: David Miller <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Russell King <[email protected]>
Cc: Paul Mundt <[email protected]>
Cc: Jeff Dike <[email protected]>
Cc: Richard Weinberger <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Nick Piggin <[email protected]>
Cc: Namhyung Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/migrate.c
mm/rmap.c
This page took 0.052793 seconds and 4 git commands to generate.