diff options
author | Rik van Riel <riel@redhat.com> | 2010-08-09 20:18:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-09 23:44:55 -0400 |
commit | cba48b98f2348c814316c4b4f411a07a0e4a2bf9 (patch) | |
tree | 49c0426f8d41cb147722305c2c3495dd515c3253 /mm/mmap.c | |
parent | bb4a340e075b7897ece109686bfa177f8518d2db (diff) |
mm: change direct call of spin_lock(anon_vma->lock) to inline function
Subsitute a direct call of spin_lock(anon_vma->lock) with an inline
function doing exactly the same.
This makes it easier to do the substitution to the root anon_vma lock in a
following patch.
We will deal with the handful of special locks (nested, dec_and_lock, etc)
separately.
Signed-off-by: Rik van Riel <riel@redhat.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Tested-by: Larry Woodman <lwoodman@redhat.com>
Acked-by: Larry Woodman <lwoodman@redhat.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2593,7 +2593,7 @@ static void vm_unlock_anon_vma(struct anon_vma *anon_vma) | |||
2593 | if (!__test_and_clear_bit(0, (unsigned long *) | 2593 | if (!__test_and_clear_bit(0, (unsigned long *) |
2594 | &anon_vma->head.next)) | 2594 | &anon_vma->head.next)) |
2595 | BUG(); | 2595 | BUG(); |
2596 | spin_unlock(&anon_vma->lock); | 2596 | anon_vma_unlock(anon_vma); |
2597 | } | 2597 | } |
2598 | } | 2598 | } |
2599 | 2599 | ||