Completly remove old do_brk() fix
Linux Kernel Mailing List <[email protected]>
| Newsgroups | gmane.linux.kernel.commits.2-4 |
|---|---|
| Message-ID | <[email protected]> |
ChangeSet 1.1573, 2005/01/12 10:34:31-02:00, [email protected] Completly remove old do_brk() fix include/linux/mm.h | 1 - mm/mmap.c | 15 --------------- 2 files changed, 16 deletions(-) diff -Nru a/include/linux/mm.h b/include/linux/mm.h --- a/include/linux/mm.h 2005-01-13 05:05:01 -08:00 +++ b/include/linux/mm.h 2005-01-13 05:05:01 -08:00 @@ -575,7 +575,6 @@ extern int do_munmap(struct mm_struct *, unsigned long, size_t); extern unsigned long do_brk(unsigned long, unsigned long); -extern unsigned long do_brk_locked(unsigned long, unsigned long); static inline void __vma_unlink(struct mm_struct * mm, struct vm_area_struct * vma, struct vm_area_struct * prev) { diff -Nru a/mm/mmap.c b/mm/mmap.c --- a/mm/mmap.c 2005-01-13 05:05:01 -08:00 +++ b/mm/mmap.c 2005-01-13 05:05:01 -08:00 @@ -1122,21 +1122,6 @@ return addr; } -/* locking version of do_brk. */ -unsigned long do_brk_locked(unsigned long addr, unsigned long len) -{ - unsigned long ret; - - down_write(¤t->mm->mmap_sem); - ret = do_brk(addr, len); - up_write(¤t->mm->mmap_sem); - - return ret; -} - - - - /* Build the RB tree corresponding to the VMA list. */ void build_mmap_rb(struct mm_struct * mm) {