aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-04-08 04:56:54 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-08 04:57:24 -0400
commita34b50ddc265bae058c66661b096ef6384c5a8b1 (patch)
treecd37db20405efebdfff8f0601d985717ab770ae2
parent44bc9dc729e33a4ec6ebed4d0b6c08e8d20b42cf (diff)
mm, x86, ptrace, bts: defer branch trace stopping, remove dead code
Remove the unused free_locked_buffer() API. Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--include/linux/mm.h1
-rw-r--r--mm/mlock.c6
2 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 776b641f37e3..a3963ba23a6d 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1320,7 +1320,6 @@ int vmemmap_populate(struct page *start_page, unsigned long pages, int node);
1320void vmemmap_populate_print_last(void); 1320void vmemmap_populate_print_last(void);
1321 1321
1322extern void *alloc_locked_buffer(size_t size); 1322extern void *alloc_locked_buffer(size_t size);
1323extern void free_locked_buffer(void *buffer, size_t size);
1324extern void refund_locked_buffer_memory(struct mm_struct *mm, size_t size); 1323extern void refund_locked_buffer_memory(struct mm_struct *mm, size_t size);
1325#endif /* __KERNEL__ */ 1324#endif /* __KERNEL__ */
1326#endif /* _LINUX_MM_H */ 1325#endif /* _LINUX_MM_H */
diff --git a/mm/mlock.c b/mm/mlock.c
index 749383b442c7..28be15ead9c1 100644
--- a/mm/mlock.c
+++ b/mm/mlock.c
@@ -671,9 +671,3 @@ void refund_locked_buffer_memory(struct mm_struct *mm, size_t size)
671 671
672 up_write(&mm->mmap_sem); 672 up_write(&mm->mmap_sem);
673} 673}
674
675void free_locked_buffer(void *buffer, size_t size)
676{
677 refund_locked_buffer_memory(current->mm, size);
678 kfree(buffer);
679}