From: Matthew Wilcox (Oracle) Date: Thu, 15 Dec 2022 21:43:53 +0000 (+0000) Subject: buffer: use b_folio in touch_buffer() X-Git-Tag: Ubuntu-6.5.0-9.9~3274^2~487 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=03c5f331234c5798965fa654783dbed1c792c7f4;p=mirror_ubuntu-kernels.git buffer: use b_folio in touch_buffer() Removes a call to compound_head() in this path. Link: https://lkml.kernel.org/r/20221215214402.3522366-4-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara Signed-off-by: Andrew Morton --- diff --git a/fs/buffer.c b/fs/buffer.c index e1055fe0b366..8a02fdaeec9a 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -60,7 +60,7 @@ static void submit_bh_wbc(blk_opf_t opf, struct buffer_head *bh, inline void touch_buffer(struct buffer_head *bh) { trace_block_touch_buffer(bh); - mark_page_accessed(bh->b_page); + folio_mark_accessed(bh->b_folio); } EXPORT_SYMBOL(touch_buffer);