Skip to content

Commit

Permalink
Remove alloc_zeroed_user_highpage()
Browse files Browse the repository at this point in the history
alloc_zeroed_user_highpage() has no in-tree users and it is not exported.
As it is not exported, it can simply be removed.

Signed-off-by: Mel Gorman <[email protected]>
Acked-by: Andy Whitcroft <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
gormanm authored and Linus Torvalds committed Jul 19, 2007
1 parent 7935289 commit bb2d5ce
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions include/linux/highmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,6 @@ __alloc_zeroed_user_highpage(gfp_t movableflags,
}
#endif

/**
* alloc_zeroed_user_highpage - Allocate a zeroed HIGHMEM page for a VMA
* @vma: The VMA the page is to be allocated for
* @vaddr: The virtual address the page will be inserted into
*
* This function will allocate a page for a VMA that the caller knows will
* not be able to move in the future using move_pages() or reclaim. If it
* is known that the page can move, use alloc_zeroed_user_highpage_movable
*/
static inline struct page *
alloc_zeroed_user_highpage(struct vm_area_struct *vma, unsigned long vaddr)
{
return __alloc_zeroed_user_highpage(0, vma, vaddr);
}

/**
* alloc_zeroed_user_highpage_movable - Allocate a zeroed HIGHMEM page for a VMA that the caller knows can move
* @vma: The VMA the page is to be allocated for
Expand Down

0 comments on commit bb2d5ce

Please sign in to comment.