mm, x86, ptrace, bts: defer branch trace stopping, remove dead code
authorIngo Molnar <mingo@elte.hu>
Wed, 8 Apr 2009 08:56:54 +0000 (10:56 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 8 Apr 2009 08:57:24 +0000 (10:57 +0200)
Remove the unused free_locked_buffer() API.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/mm.h
mm/mlock.c

index 776b641f37e3a340101c2773807a4258fd76caa1..a3963ba23a6d6fff5e0a1632e9d871128755fb2e 100644 (file)
@@ -1320,7 +1320,6 @@ int vmemmap_populate(struct page *start_page, unsigned long pages, int node);
 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 */
index 749383b442c7e6f57ac3027ffb13e4f5c6eed3f9..28be15ead9c13f5adca9466c0bc8c771199a4d2a 100644 (file)
@@ -671,9 +671,3 @@ void refund_locked_buffer_memory(struct mm_struct *mm, size_t size)
 
        up_write(&mm->mmap_sem);
 }
-
-void free_locked_buffer(void *buffer, size_t size)
-{
-       refund_locked_buffer_memory(current->mm, size);
-       kfree(buffer);
-}