diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-10-26 17:21:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 19:52:09 -0400 |
commit | 25ca1d6c02fe1c6d90d918867ef670d323725458 (patch) | |
tree | de1709dd1dc7e0b9e9bd91840beb02f12e56b7e0 /mm/memory.c | |
parent | e6223a3b19421e3a8df1352d21fd0d71093f44ae (diff) |
mm: wrap get_locked_pte() using __cond_lock()
The get_locked_pte() conditionally grabs 'ptl' in case of returning
non-NULL. This leads sparse to complain about context imbalance. Rename
and wrap it using __cond_lock() to make sparse happy.
Signed-off-by: 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 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index 714c4438d887..4ce24a4d5d48 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -1591,7 +1591,7 @@ struct page *get_dump_page(unsigned long addr) | |||
1591 | } | 1591 | } |
1592 | #endif /* CONFIG_ELF_CORE */ | 1592 | #endif /* CONFIG_ELF_CORE */ |
1593 | 1593 | ||
1594 | pte_t *get_locked_pte(struct mm_struct *mm, unsigned long addr, | 1594 | pte_t *__get_locked_pte(struct mm_struct *mm, unsigned long addr, |
1595 | spinlock_t **ptl) | 1595 | spinlock_t **ptl) |
1596 | { | 1596 | { |
1597 | pgd_t * pgd = pgd_offset(mm, addr); | 1597 | pgd_t * pgd = pgd_offset(mm, addr); |