bcache: switch from pages to folios in read_super()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 2 Jul 2025 02:48:48 +0000 (10:48 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 3 Jul 2025 00:56:42 +0000 (18:56 -0600)
commit39107ccbc6967461ed8471e5a7a881e4429ecf31
treecc6e849c899d97f9bfd798b449f8ae0684ddb933
parent0a50ed0574ffe853f15c3430794b5439b2e6150a
bcache: switch from pages to folios in read_super()

Retrieve a folio from the page cache instead of a page. Removes a hidden
call to compound_head(). Then be sure to call folio_put() instead of
put_page() to release it. That doesn't save any calls to
compound_head(), just moves them around.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Coly Li <colyli@kernel.org>
Acked-back: Coly Li <colyli@kernel.org>
Link: https://lore.kernel.org/r/20250702024848.343370-1-colyli@kernel.org
[axboe: commit message massaging]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c