Remove the unused free_locked_buffer() API.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
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 */
up_write(&mm->mmap_sem);
}
-
-void free_locked_buffer(void *buffer, size_t size)
-{
- refund_locked_buffer_memory(current->mm, size);
- kfree(buffer);
-}