提交 2c0b80d4 编写于 作者: N Nicholas Krause 提交者: Linus Torvalds

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: NNicholas Krause <xerofoify@gmail.com>
Acked-by: NMichal Hocko <mhocko@suse.cz>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 28c015d0
......@@ -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;
int nr_zones = 0;
......@@ -141,7 +141,6 @@ static int set_recommended_min_free_kbytes(void)
min_free_kbytes = recommended_min;
}
setup_per_zone_wmarks();
return 0;
}
static int start_stop_khugepaged(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册