Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250932
b: refs/heads/master
c: 722e2ee
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Wilson authored and Linus Torvalds committed May 25, 2011
1 parent c062a72 commit b7897ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: b1f72d1857bb0de19ce20a59f3f85e6dc47bdec8
refs/heads/master: 722e2ee09b8dfc2ac5eedb802dc0d227702df084
8 changes: 4 additions & 4 deletions trunk/mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ static const struct mempolicy_operations mpol_ops[MPOL_MAX] = {
},
};

static void gather_stats(struct page *, void *, int pte_dirty);
static void migrate_page_add(struct page *page, struct list_head *pagelist,
unsigned long flags);

Expand Down Expand Up @@ -2539,9 +2538,8 @@ struct numa_maps {
unsigned long node[MAX_NUMNODES];
};

static void gather_stats(struct page *page, void *private, int pte_dirty)
static void gather_stats(struct page *page, struct numa_maps *md, int pte_dirty)
{
struct numa_maps *md = private;
int count = page_mapcount(page);

md->pages++;
Expand Down Expand Up @@ -2634,6 +2632,7 @@ static void check_huge_range(struct vm_area_struct *vma,
static int gather_hugetbl_stats(pte_t *pte, unsigned long hmask,
unsigned long addr, unsigned long end, struct mm_walk *walk)
{
struct numa_maps *md;
struct page *page;

if (pte_none(*pte))
Expand All @@ -2643,7 +2642,8 @@ static int gather_hugetbl_stats(pte_t *pte, unsigned long hmask,
if (!page)
return 0;

gather_stats(page, walk->private, pte_dirty(*pte));
md = walk->private;
gather_stats(page, md, pte_dirty(*pte));
return 0;
}

Expand Down

0 comments on commit b7897ca

Please sign in to comment.