Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74991
b: refs/heads/master
c: 368d2c6
h: refs/heads/master
i:
  74989: 185bae1
  74987: a80fd34
  74983: f2ac266
  74975: 67a2941
v: v3
  • Loading branch information
Nishanth Aravamudan authored and Linus Torvalds committed Dec 18, 2007
1 parent a603dfa commit b4c0f22
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 15 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: d1c3fb1f8f29c41b0d098d7cfb3c32939043631f
refs/heads/master: 368d2c6358c3c62b3820a8a73f9fe9c8b540cdea
1 change: 0 additions & 1 deletion trunk/include/linux/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ void hugetlb_unreserve_pages(struct inode *inode, long offset, long freed);

extern unsigned long max_huge_pages;
extern unsigned long hugepages_treat_as_movable;
extern int hugetlb_dynamic_pool;
extern unsigned long nr_overcommit_huge_pages;
extern const unsigned long hugetlb_zero, hugetlb_infinity;
extern int sysctl_hugetlb_shm_group;
Expand Down
8 changes: 0 additions & 8 deletions trunk/kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,14 +904,6 @@ static struct ctl_table vm_table[] = {
.mode = 0644,
.proc_handler = &hugetlb_treat_movable_handler,
},
{
.ctl_name = CTL_UNNUMBERED,
.procname = "hugetlb_dynamic_pool",
.data = &hugetlb_dynamic_pool,
.maxlen = sizeof(hugetlb_dynamic_pool),
.mode = 0644,
.proc_handler = &proc_dointvec,
},
{
.ctl_name = CTL_UNNUMBERED,
.procname = "nr_overcommit_hugepages",
Expand Down
5 changes: 0 additions & 5 deletions trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ static unsigned int free_huge_pages_node[MAX_NUMNODES];
static unsigned int surplus_huge_pages_node[MAX_NUMNODES];
static gfp_t htlb_alloc_mask = GFP_HIGHUSER;
unsigned long hugepages_treat_as_movable;
int hugetlb_dynamic_pool;
unsigned long nr_overcommit_huge_pages;
static int hugetlb_next_nid;

Expand Down Expand Up @@ -230,10 +229,6 @@ static struct page *alloc_buddy_huge_page(struct vm_area_struct *vma,
struct page *page;
unsigned int nid;

/* Check if the dynamic pool is enabled */
if (!hugetlb_dynamic_pool)
return NULL;

/*
* Assume we will successfully allocate the surplus page to
* prevent racing processes from causing the surplus to exceed
Expand Down

0 comments on commit b4c0f22

Please sign in to comment.