|
@@ -2751,7 +2751,7 @@ static int hugetlb_sysctl_handler_common(bool obey_mempolicy,
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
if (!hugepages_supported())
|
|
if (!hugepages_supported())
|
|
- return -ENOTSUPP;
|
|
|
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
table->data = &tmp;
|
|
table->data = &tmp;
|
|
table->maxlen = sizeof(unsigned long);
|
|
table->maxlen = sizeof(unsigned long);
|
|
@@ -2792,7 +2792,7 @@ int hugetlb_overcommit_handler(struct ctl_table *table, int write,
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
if (!hugepages_supported())
|
|
if (!hugepages_supported())
|
|
- return -ENOTSUPP;
|
|
|
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
tmp = h->nr_overcommit_huge_pages;
|
|
tmp = h->nr_overcommit_huge_pages;
|
|
|
|
|