summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-04-08 10:56:54 +0200
committerIngo Molnar <mingo@elte.hu>2009-04-08 10:57:24 +0200
commita34b50ddc265bae058c66661b096ef6384c5a8b1 (patch)
treecd37db20405efebdfff8f0601d985717ab770ae2 /mm
parentmm, x86, ptrace, bts: defer branch trace stopping, cleanup (diff)
downloadlinux-a34b50ddc265bae058c66661b096ef6384c5a8b1.tar.xz
linux-a34b50ddc265bae058c66661b096ef6384c5a8b1.zip
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>
Diffstat (limited to 'mm')
-rw-r--r--mm/mlock.c6
1 files changed, 0 insertions, 6 deletions
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)
up_write(&mm->mmap_sem);
}
-
-void free_locked_buffer(void *buffer, size_t size)
-{
- refund_locked_buffer_memory(current->mm, size);
- kfree(buffer);
-}