Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106117
b: refs/heads/master
c: e44d1b2
h: refs/heads/master
i:
  106115: 756de85
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jul 25, 2008
1 parent c901685 commit 7249cd0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 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: 5047887caf1806f31652210df27fb62a7c43f27d
refs/heads/master: e44d1b2998d62a1f2f4d7eb17b56ba396535509f
22 changes: 11 additions & 11 deletions trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,17 @@ static void __init report_hugepages(void)
}
}

static unsigned int cpuset_mems_nr(unsigned int *array)
{
int node;
unsigned int nr = 0;

for_each_node_mask(node, cpuset_current_mems_allowed)
nr += array[node];

return nr;
}

#ifdef CONFIG_SYSCTL
#ifdef CONFIG_HIGHMEM
static void try_to_free_low(struct hstate *h, unsigned long count)
Expand Down Expand Up @@ -1375,17 +1386,6 @@ static int __init hugetlb_default_setup(char *s)
}
__setup("default_hugepagesz=", hugetlb_default_setup);

static unsigned int cpuset_mems_nr(unsigned int *array)
{
int node;
unsigned int nr = 0;

for_each_node_mask(node, cpuset_current_mems_allowed)
nr += array[node];

return nr;
}

int hugetlb_sysctl_handler(struct ctl_table *table, int write,
struct file *file, void __user *buffer,
size_t *length, loff_t *ppos)
Expand Down

0 comments on commit 7249cd0

Please sign in to comment.