Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139153
b: refs/heads/master
c: e2f17d9
h: refs/heads/master
i:
  139151: 17ee7c4
v: v3
  • Loading branch information
Roel Kluin authored and Linus Torvalds committed Apr 1, 2009
1 parent 29a41b1 commit dd9a4a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1d7487173eab8352125cf6cc271940f24254bd4
refs/heads/master: e2f17d9459aeccf4e013e31cbd741d6b1858eec4
6 changes: 3 additions & 3 deletions trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ static void return_unused_surplus_pages(struct hstate *h,
* an instantiated the change should be committed via vma_commit_reservation.
* No action is required on failure.
*/
static int vma_needs_reservation(struct hstate *h,
static long vma_needs_reservation(struct hstate *h,
struct vm_area_struct *vma, unsigned long addr)
{
struct address_space *mapping = vma->vm_file->f_mapping;
Expand All @@ -933,7 +933,7 @@ static int vma_needs_reservation(struct hstate *h,
return 1;

} else {
int err;
long err;
pgoff_t idx = vma_hugecache_offset(h, vma, addr);
struct resv_map *reservations = vma_resv_map(vma);

Expand Down Expand Up @@ -969,7 +969,7 @@ static struct page *alloc_huge_page(struct vm_area_struct *vma,
struct page *page;
struct address_space *mapping = vma->vm_file->f_mapping;
struct inode *inode = mapping->host;
unsigned int chg;
long chg;

/*
* Processes that did not create the mapping will have no reserves and
Expand Down

0 comments on commit dd9a4a9

Please sign in to comment.