Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198235
b: refs/heads/master
c: 1a5cb81
h: refs/heads/master
i:
  198233: 7ac0879
  198231: 0b70a64
v: v3
  • Loading branch information
Naoya Horiguchi authored and Linus Torvalds committed May 25, 2010
1 parent 930978f commit b85fa9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e48293fd75b3aa67f43ad6e3d2ff397caa55d58b
refs/heads/master: 1a5cb81465b66b74bf3d6ad36e5382238de6a132
4 changes: 4 additions & 0 deletions trunk/fs/proc/task_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ static int pagemap_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end,
return err;
}

#ifdef CONFIG_HUGETLB_PAGE
static u64 huge_pte_to_pagemap_entry(pte_t pte, int offset)
{
u64 pme = 0;
Expand Down Expand Up @@ -664,6 +665,7 @@ static int pagemap_hugetlb_range(pte_t *pte, unsigned long hmask,

return err;
}
#endif /* HUGETLB_PAGE */

/*
* /proc/pid/pagemap - an array mapping virtual pages to pfns
Expand Down Expand Up @@ -733,7 +735,9 @@ static ssize_t pagemap_read(struct file *file, char __user *buf,

pagemap_walk.pmd_entry = pagemap_pte_range;
pagemap_walk.pte_hole = pagemap_pte_hole;
#ifdef CONFIG_HUGETLB_PAGE
pagemap_walk.hugetlb_entry = pagemap_hugetlb_range;
#endif
pagemap_walk.mm = mm;
pagemap_walk.private = ±

Expand Down

0 comments on commit b85fa9c

Please sign in to comment.