diff options
author | Michel Lespinasse <walken@google.com> | 2013-07-10 19:05:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-10 21:11:34 -0400 |
commit | 98d1e64f95b177d0f14efbdf695a1b28e1428035 (patch) | |
tree | b7473b55b4b3579edfcb0c98b7c4e7d65f8c169c /include/linux | |
parent | 61b0d76017a50c263c303fa263b295b04e0c68f6 (diff) |
mm: remove free_area_cache
Since all architectures have been converted to use vm_unmapped_area(),
there is no remaining use for the free_area_cache.
Signed-off-by: Michel Lespinasse <walken@google.com>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Helge Deller <deller@gmx.de>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mm_types.h | 3 | ||||
-rw-r--r-- | include/linux/sched.h | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index ace9a5f01c64..fb425aa16c01 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h | |||
@@ -330,12 +330,9 @@ struct mm_struct { | |||
330 | unsigned long (*get_unmapped_area) (struct file *filp, | 330 | unsigned long (*get_unmapped_area) (struct file *filp, |
331 | unsigned long addr, unsigned long len, | 331 | unsigned long addr, unsigned long len, |
332 | unsigned long pgoff, unsigned long flags); | 332 | unsigned long pgoff, unsigned long flags); |
333 | void (*unmap_area) (struct mm_struct *mm, unsigned long addr); | ||
334 | #endif | 333 | #endif |
335 | unsigned long mmap_base; /* base of mmap area */ | 334 | unsigned long mmap_base; /* base of mmap area */ |
336 | unsigned long task_size; /* size of task vm space */ | 335 | unsigned long task_size; /* size of task vm space */ |
337 | unsigned long cached_hole_size; /* if non-zero, the largest hole below free_area_cache */ | ||
338 | unsigned long free_area_cache; /* first hole of size cached_hole_size or larger */ | ||
339 | unsigned long highest_vm_end; /* highest vma end address */ | 336 | unsigned long highest_vm_end; /* highest vma end address */ |
340 | pgd_t * pgd; | 337 | pgd_t * pgd; |
341 | atomic_t mm_users; /* How many users with user space? */ | 338 | atomic_t mm_users; /* How many users with user space? */ |
diff --git a/include/linux/sched.h b/include/linux/sched.h index f99d57e0ae47..50d04b92ceda 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -322,8 +322,6 @@ extern unsigned long | |||
322 | arch_get_unmapped_area_topdown(struct file *filp, unsigned long addr, | 322 | arch_get_unmapped_area_topdown(struct file *filp, unsigned long addr, |
323 | unsigned long len, unsigned long pgoff, | 323 | unsigned long len, unsigned long pgoff, |
324 | unsigned long flags); | 324 | unsigned long flags); |
325 | extern void arch_unmap_area(struct mm_struct *, unsigned long); | ||
326 | extern void arch_unmap_area_topdown(struct mm_struct *, unsigned long); | ||
327 | #else | 325 | #else |
328 | static inline void arch_pick_mmap_layout(struct mm_struct *mm) {} | 326 | static inline void arch_pick_mmap_layout(struct mm_struct *mm) {} |
329 | #endif | 327 | #endif |