virt_to_head_page() implies it. Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx> --- kernel/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/resource.c b/kernel/resource.c index a363211fda99..ca9f5198a01f 100644 --- a/kernel/resource.c +++ b/kernel/resource.c @@ -151,7 +151,7 @@ static void free_resource(struct resource *res) if (!res) return; - if (!PageSlab(compound_head(virt_to_head_page(res)))) { + if (!PageSlab(virt_to_head_page(res))) { spin_lock(&bootmem_resource_lock); res->sibling = bootmem_resource_free; bootmem_resource_free = res; -- 2.32.0