Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230824
b: refs/heads/master
c: 73ae31e
h: refs/heads/master
v: v3
  • Loading branch information
Eric B Munson authored and Linus Torvalds committed Jan 14, 2011
1 parent fa216e8 commit 2076d0c
Show file tree
Hide file tree
Showing 2 changed files with 3 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: adbe8726dc2a3805630d517270db17e3af86e526
refs/heads/master: 73ae31e5986a4c0ee84bfd13ccd9b57a98956f6f
6 changes: 2 additions & 4 deletions trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1375,10 +1375,8 @@ static ssize_t nr_hugepages_store_common(bool obey_mempolicy,
NODEMASK_ALLOC(nodemask_t, nodes_allowed, GFP_KERNEL | __GFP_NORETRY);

err = strict_strtoul(buf, 10, &count);
if (err) {
err = 0; /* This seems wrong */
if (err)
goto out;
}

h = kobj_to_hstate(kobj, &nid);
if (h->order >= MAX_ORDER) {
Expand Down Expand Up @@ -1469,7 +1467,7 @@ static ssize_t nr_overcommit_hugepages_store(struct kobject *kobj,

err = strict_strtoul(buf, 10, &input);
if (err)
return 0;
return err;

spin_lock(&hugetlb_lock);
h->nr_overcommit_huge_pages = input;
Expand Down

0 comments on commit 2076d0c

Please sign in to comment.