Skip to content

Commit

Permalink
mm, x86, ptrace, bts: defer branch trace stopping, remove dead code
Browse files Browse the repository at this point in the history
Remove the unused free_locked_buffer() API.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Apr 8, 2009
1 parent 44bc9dc commit a34b50d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
6 changes: 0 additions & 6 deletions mm/mlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit a34b50d

Please sign in to comment.