diff options
author | Jan Beulich <jbeulich@novell.com> | 2008-07-24 00:27:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:15 -0400 |
commit | 42b7772812d15b86543a23b82bd6070eef9a08b1 (patch) | |
tree | 10665ee01fe82ce17c68a6278d044531b1ed64c0 /include | |
parent | a352894d07059649398c4769dc8b645e1a1dad88 (diff) |
mm: remove double indirection on tlb parameter to free_pgd_range() & Co
The double indirection here is not needed anywhere and hence (at least)
confusing.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: "David S. Miller" <davem@davemloft.net>
Acked-by: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-ia64/hugetlb.h | 2 | ||||
-rw-r--r-- | include/asm-powerpc/hugetlb.h | 2 | ||||
-rw-r--r-- | include/asm-sh/hugetlb.h | 2 | ||||
-rw-r--r-- | include/asm-sparc/hugetlb.h | 2 | ||||
-rw-r--r-- | include/asm-x86/hugetlb.h | 2 | ||||
-rw-r--r-- | include/linux/mm.h | 4 |
6 files changed, 6 insertions, 8 deletions
diff --git a/include/asm-ia64/hugetlb.h b/include/asm-ia64/hugetlb.h index f28a9701f1cf..e9d1e5e2382d 100644 --- a/include/asm-ia64/hugetlb.h +++ b/include/asm-ia64/hugetlb.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #include <asm/page.h> | 4 | #include <asm/page.h> |
5 | 5 | ||
6 | 6 | ||
7 | void hugetlb_free_pgd_range(struct mmu_gather **tlb, unsigned long addr, | 7 | void hugetlb_free_pgd_range(struct mmu_gather *tlb, unsigned long addr, |
8 | unsigned long end, unsigned long floor, | 8 | unsigned long end, unsigned long floor, |
9 | unsigned long ceiling); | 9 | unsigned long ceiling); |
10 | 10 | ||
diff --git a/include/asm-powerpc/hugetlb.h b/include/asm-powerpc/hugetlb.h index be32ff02f4a0..0a37aa5ecaa5 100644 --- a/include/asm-powerpc/hugetlb.h +++ b/include/asm-powerpc/hugetlb.h | |||
@@ -7,7 +7,7 @@ | |||
7 | int is_hugepage_only_range(struct mm_struct *mm, unsigned long addr, | 7 | int is_hugepage_only_range(struct mm_struct *mm, unsigned long addr, |
8 | unsigned long len); | 8 | unsigned long len); |
9 | 9 | ||
10 | void hugetlb_free_pgd_range(struct mmu_gather **tlb, unsigned long addr, | 10 | void hugetlb_free_pgd_range(struct mmu_gather *tlb, unsigned long addr, |
11 | unsigned long end, unsigned long floor, | 11 | unsigned long end, unsigned long floor, |
12 | unsigned long ceiling); | 12 | unsigned long ceiling); |
13 | 13 | ||
diff --git a/include/asm-sh/hugetlb.h b/include/asm-sh/hugetlb.h index 02402303d89b..fb30018938c7 100644 --- a/include/asm-sh/hugetlb.h +++ b/include/asm-sh/hugetlb.h | |||
@@ -26,7 +26,7 @@ static inline int prepare_hugepage_range(unsigned long addr, unsigned long len) | |||
26 | static inline void hugetlb_prefault_arch_hook(struct mm_struct *mm) { | 26 | static inline void hugetlb_prefault_arch_hook(struct mm_struct *mm) { |
27 | } | 27 | } |
28 | 28 | ||
29 | static inline void hugetlb_free_pgd_range(struct mmu_gather **tlb, | 29 | static inline void hugetlb_free_pgd_range(struct mmu_gather *tlb, |
30 | unsigned long addr, unsigned long end, | 30 | unsigned long addr, unsigned long end, |
31 | unsigned long floor, | 31 | unsigned long floor, |
32 | unsigned long ceiling) | 32 | unsigned long ceiling) |
diff --git a/include/asm-sparc/hugetlb.h b/include/asm-sparc/hugetlb.h index 412af58926a0..aeb92374ca3d 100644 --- a/include/asm-sparc/hugetlb.h +++ b/include/asm-sparc/hugetlb.h | |||
@@ -31,7 +31,7 @@ static inline int prepare_hugepage_range(unsigned long addr, unsigned long len) | |||
31 | return 0; | 31 | return 0; |
32 | } | 32 | } |
33 | 33 | ||
34 | static inline void hugetlb_free_pgd_range(struct mmu_gather **tlb, | 34 | static inline void hugetlb_free_pgd_range(struct mmu_gather *tlb, |
35 | unsigned long addr, unsigned long end, | 35 | unsigned long addr, unsigned long end, |
36 | unsigned long floor, | 36 | unsigned long floor, |
37 | unsigned long ceiling) | 37 | unsigned long ceiling) |
diff --git a/include/asm-x86/hugetlb.h b/include/asm-x86/hugetlb.h index 14171a4924f6..7eed6e0883bf 100644 --- a/include/asm-x86/hugetlb.h +++ b/include/asm-x86/hugetlb.h | |||
@@ -26,7 +26,7 @@ static inline int prepare_hugepage_range(unsigned long addr, unsigned long len) | |||
26 | static inline void hugetlb_prefault_arch_hook(struct mm_struct *mm) { | 26 | static inline void hugetlb_prefault_arch_hook(struct mm_struct *mm) { |
27 | } | 27 | } |
28 | 28 | ||
29 | static inline void hugetlb_free_pgd_range(struct mmu_gather **tlb, | 29 | static inline void hugetlb_free_pgd_range(struct mmu_gather *tlb, |
30 | unsigned long addr, unsigned long end, | 30 | unsigned long addr, unsigned long end, |
31 | unsigned long floor, | 31 | unsigned long floor, |
32 | unsigned long ceiling) | 32 | unsigned long ceiling) |
diff --git a/include/linux/mm.h b/include/linux/mm.h index 5c7f8f64f70e..f8071097302a 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -769,10 +769,8 @@ struct mm_walk { | |||
769 | 769 | ||
770 | int walk_page_range(unsigned long addr, unsigned long end, | 770 | int walk_page_range(unsigned long addr, unsigned long end, |
771 | struct mm_walk *walk); | 771 | struct mm_walk *walk); |
772 | void free_pgd_range(struct mmu_gather **tlb, unsigned long addr, | 772 | void free_pgd_range(struct mmu_gather *tlb, unsigned long addr, |
773 | unsigned long end, unsigned long floor, unsigned long ceiling); | 773 | unsigned long end, unsigned long floor, unsigned long ceiling); |
774 | void free_pgtables(struct mmu_gather **tlb, struct vm_area_struct *start_vma, | ||
775 | unsigned long floor, unsigned long ceiling); | ||
776 | int copy_page_range(struct mm_struct *dst, struct mm_struct *src, | 774 | int copy_page_range(struct mm_struct *dst, struct mm_struct *src, |
777 | struct vm_area_struct *vma); | 775 | struct vm_area_struct *vma); |
778 | void unmap_mapping_range(struct address_space *mapping, | 776 | void unmap_mapping_range(struct address_space *mapping, |