futex: Use a folio instead of a page
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Aug 2023 14:22:07 +0000 (15:22 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 13 Sep 2023 22:03:09 +0000 (00:03 +0200)
commite35a6cf1cc343d720ad235f678f1cd2a9876b777
tree13f8569a6b83a7df6696299df65c32d653377c28
parent85be6d842447067ce76047a14d4258c96fd33b7b
futex: Use a folio instead of a page

The futex code already handles compound pages correctly, but using a folio
tells the compiler that there is already a reference to the head page and
it doesn't need to call compound_head() again.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20230821142207.2537124-1-willy@infradead.org
kernel/futex/core.c