mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
mm: make set_recommended_min_free_kbytes() return void
This makes set_recommended_min_free_kbytes() have a return type of void as it cannot fail. Signed-off-by: Nicholas Krause <xerofoify@gmail.com> Acked-by: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
28c015d075
commit
2c0b80d463
1 changed files with 1 additions and 2 deletions
|
@ -106,7 +106,7 @@ static struct khugepaged_scan khugepaged_scan = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static int set_recommended_min_free_kbytes(void)
|
static void set_recommended_min_free_kbytes(void)
|
||||||
{
|
{
|
||||||
struct zone *zone;
|
struct zone *zone;
|
||||||
int nr_zones = 0;
|
int nr_zones = 0;
|
||||||
|
@ -141,7 +141,6 @@ static int set_recommended_min_free_kbytes(void)
|
||||||
min_free_kbytes = recommended_min;
|
min_free_kbytes = recommended_min;
|
||||||
}
|
}
|
||||||
setup_per_zone_wmarks();
|
setup_per_zone_wmarks();
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int start_stop_khugepaged(void)
|
static int start_stop_khugepaged(void)
|
||||||
|
|
Loading…
Add table
Reference in a new issue