diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2011-05-24 20:12:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 11:39:18 -0400 |
commit | 25aeeb046e695c3093a86aa9386128ffb3b1bc32 (patch) | |
tree | 3ccd60d5459baa4dc4d0245d764a7cae2496c876 /include/linux/rmap.h | |
parent | 3d48ae45e72390ddf8cc5256ac32ed6f7a19cbea (diff) |
mm: revert page_lock_anon_vma() lock annotation
Its beyond ugly and gets in the way.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: David Miller <davem@davemloft.net>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Tony Luck <tony.luck@intel.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Nick Piggin <npiggin@kernel.dk>
Cc: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/rmap.h')
-rw-r--r-- | include/linux/rmap.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/include/linux/rmap.h b/include/linux/rmap.h index 830e65dc01ee..590c291a8cd9 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h | |||
@@ -218,20 +218,7 @@ int try_to_munlock(struct page *); | |||
218 | /* | 218 | /* |
219 | * Called by memory-failure.c to kill processes. | 219 | * Called by memory-failure.c to kill processes. |
220 | */ | 220 | */ |
221 | struct anon_vma *__page_lock_anon_vma(struct page *page); | 221 | struct anon_vma *page_lock_anon_vma(struct page *page); |
222 | |||
223 | static inline struct anon_vma *page_lock_anon_vma(struct page *page) | ||
224 | { | ||
225 | struct anon_vma *anon_vma; | ||
226 | |||
227 | __cond_lock(RCU, anon_vma = __page_lock_anon_vma(page)); | ||
228 | |||
229 | /* (void) is needed to make gcc happy */ | ||
230 | (void) __cond_lock(&anon_vma->root->lock, anon_vma); | ||
231 | |||
232 | return anon_vma; | ||
233 | } | ||
234 | |||
235 | void page_unlock_anon_vma(struct anon_vma *anon_vma); | 222 | void page_unlock_anon_vma(struct anon_vma *anon_vma); |
236 | int page_mapped_in_vma(struct page *page, struct vm_area_struct *vma); | 223 | int page_mapped_in_vma(struct page *page, struct vm_area_struct *vma); |
237 | 224 | ||