Skip to content

Commit

Permalink
[PATCH] Hugetlb: Rename find_lock_page to find_or_alloc_huge_page
Browse files Browse the repository at this point in the history
find_lock_huge_page() isn't a great name, since it does extra things not
analagous to find_lock_page().  Rename it find_or_alloc_huge_page() which is
closer to the mark.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Adam Litke <agl@us.ibm.com>
Cc: William Lee Irwin III <wli@holomorphy.com>
Cc: "Seth, Rohit" <rohit.seth@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Adam Litke authored and Linus Torvalds committed Jan 6, 2006
1 parent f091679 commit 85ef47f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ void unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start,
flush_tlb_range(vma, start, end);
}

static struct page *find_lock_huge_page(struct address_space *mapping,
unsigned long idx)
static struct page *find_or_alloc_huge_page(struct address_space *mapping,
unsigned long idx)
{
struct page *page;
int err;
Expand Down Expand Up @@ -398,7 +398,7 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma,
* Use page lock to guard against racing truncation
* before we get page_table_lock.
*/
page = find_lock_huge_page(mapping, idx);
page = find_or_alloc_huge_page(mapping, idx);
if (!page)
goto out;

Expand Down

0 comments on commit 85ef47f

Please sign in to comment.