aboutsummaryrefslogtreecommitdiff
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorGravatar Matthew Wilcox (Oracle) <willy@infradead.org> 2022-12-15 21:43:53 +0000
committerGravatar Andrew Morton <akpm@linux-foundation.org> 2023-01-18 17:12:40 -0800
commit03c5f331234c5798965fa654783dbed1c792c7f4 (patch)
tree1b69ddb52769e56910dceb4b1e7c2170d40d528d /fs/buffer.c
parentbuffer: replace obvious uses of b_page with b_folio (diff)
downloadlinux-03c5f331234c5798965fa654783dbed1c792c7f4.tar.gz
linux-03c5f331234c5798965fa654783dbed1c792c7f4.tar.bz2
linux-03c5f331234c5798965fa654783dbed1c792c7f4.zip
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) <willy@infradead.org> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c2
1 files changed, 1 insertions, 1 deletions
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);