]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_alloc.c: rename check_free_page() to free_page_is_bad()
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 13 Sep 2022 22:20:48 +0000 (15:20 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:14 +0000 (14:03 -0700)
commitdbb910c117d5495116f8305c2e5eaa6aadb92a90
tree526f3af645a5094befb5b7fd7f7cba314f60ea7c
parent7f8ee36341148ae9d68522cd1f9e68865b22a71b
mm/page_alloc.c: rename check_free_page() to free_page_is_bad()

The name "check_free_page()" provides no information regarding its return
value when the page is indeed found to be bad.

Renaming it to "free_page_is_bad()" makes it clear that a `true' return
value means the page was bad.

And make it return a bool, not an int.

[akpm@linux-foundation.org: don't use bool as int]
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: ke.wang <ke.wang@unisoc.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Zhaoyang Huang <huangzhaoyang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c