Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115868
b: refs/heads/master
c: 2a4b3de
h: refs/heads/master
v: v3
  • Loading branch information
Harvey Harrison authored and Linus Torvalds committed Oct 20, 2008
1 parent 5b56cc9 commit e8aa65f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: db64fe02258f1507e13fe5212a989922323685ce
refs/heads/master: 2a4b3ded5c76fbe373d6415b1b3ad4841f15c9bd
12 changes: 5 additions & 7 deletions trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ struct resv_map {
struct list_head regions;
};

struct resv_map *resv_map_alloc(void)
static struct resv_map *resv_map_alloc(void)
{
struct resv_map *resv_map = kmalloc(sizeof(*resv_map), GFP_KERNEL);
if (!resv_map)
Expand All @@ -274,7 +274,7 @@ struct resv_map *resv_map_alloc(void)
return resv_map;
}

void resv_map_release(struct kref *ref)
static void resv_map_release(struct kref *ref)
{
struct resv_map *resv_map = container_of(ref, struct resv_map, refs);

Expand All @@ -289,7 +289,7 @@ static struct resv_map *vma_resv_map(struct vm_area_struct *vma)
if (!(vma->vm_flags & VM_SHARED))
return (struct resv_map *)(get_vma_private_data(vma) &
~HPAGE_RESV_MASK);
return 0;
return NULL;
}

static void set_vma_resv_map(struct vm_area_struct *vma, struct resv_map *map)
Expand Down Expand Up @@ -1747,10 +1747,8 @@ void unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start,
* from other VMAs and let the children be SIGKILLed if they are faulting the
* same region.
*/
int unmap_ref_private(struct mm_struct *mm,
struct vm_area_struct *vma,
struct page *page,
unsigned long address)
static int unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,
struct page *page, unsigned long address)
{
struct vm_area_struct *iter_vma;
struct address_space *mapping;
Expand Down

0 comments on commit e8aa65f

Please sign in to comment.