mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
mm, hugetlb: remove hugetlb_zero and hugetlb_infinity
They are unnecessary: "zero" can be used in place of "hugetlb_zero" and passing extra2 == NULL is equivalent to infinity. Signed-off-by: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
238d3c13f0
commit
ed4d4902eb
3 changed files with 3 additions and 8 deletions
|
@ -1240,8 +1240,7 @@ static struct ctl_table vm_table[] = {
|
|||
.maxlen = sizeof(unsigned long),
|
||||
.mode = 0644,
|
||||
.proc_handler = hugetlb_sysctl_handler,
|
||||
.extra1 = (void *)&hugetlb_zero,
|
||||
.extra2 = (void *)&hugetlb_infinity,
|
||||
.extra1 = &zero,
|
||||
},
|
||||
#ifdef CONFIG_NUMA
|
||||
{
|
||||
|
@ -1250,8 +1249,7 @@ static struct ctl_table vm_table[] = {
|
|||
.maxlen = sizeof(unsigned long),
|
||||
.mode = 0644,
|
||||
.proc_handler = &hugetlb_mempolicy_sysctl_handler,
|
||||
.extra1 = (void *)&hugetlb_zero,
|
||||
.extra2 = (void *)&hugetlb_infinity,
|
||||
.extra1 = &zero,
|
||||
},
|
||||
#endif
|
||||
{
|
||||
|
@ -1274,8 +1272,7 @@ static struct ctl_table vm_table[] = {
|
|||
.maxlen = sizeof(unsigned long),
|
||||
.mode = 0644,
|
||||
.proc_handler = hugetlb_overcommit_handler,
|
||||
.extra1 = (void *)&hugetlb_zero,
|
||||
.extra2 = (void *)&hugetlb_infinity,
|
||||
.extra1 = &zero,
|
||||
},
|
||||
#endif
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue