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>
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 776b641..a3963ba 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1320,7 +1320,6 @@
void vmemmap_populate_print_last(void);
extern void *alloc_locked_buffer(size_t size);
-extern void free_locked_buffer(void *buffer, size_t size);
extern void refund_locked_buffer_memory(struct mm_struct *mm, size_t size);
#endif /* __KERNEL__ */
#endif /* _LINUX_MM_H */
diff --git a/mm/mlock.c b/mm/mlock.c
index 749383b..28be15e 100644
--- a/mm/mlock.c
+++ b/mm/mlock.c
@@ -671,9 +671,3 @@
up_write(&mm->mmap_sem);
}
-
-void free_locked_buffer(void *buffer, size_t size)
-{
- refund_locked_buffer_memory(current->mm, size);
- kfree(buffer);
-}