mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 17:57:38 -04:00
mm/writeback: Convert tracing writeback_page_template to folios
Rename writeback_dirty_page() to writeback_dirty_folio() and wait_on_page_writeback() to folio_wait_writeback(). Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: David Howells <dhowells@redhat.com> Acked-by: Vlastimil Babka <vbabka@suse.cz>
This commit is contained in:
@@ -52,11 +52,11 @@ WB_WORK_REASON
|
||||
|
||||
struct wb_writeback_work;
|
||||
|
||||
DECLARE_EVENT_CLASS(writeback_page_template,
|
||||
DECLARE_EVENT_CLASS(writeback_folio_template,
|
||||
|
||||
TP_PROTO(struct page *page, struct address_space *mapping),
|
||||
TP_PROTO(struct folio *folio, struct address_space *mapping),
|
||||
|
||||
TP_ARGS(page, mapping),
|
||||
TP_ARGS(folio, mapping),
|
||||
|
||||
TP_STRUCT__entry (
|
||||
__array(char, name, 32)
|
||||
@@ -69,7 +69,7 @@ DECLARE_EVENT_CLASS(writeback_page_template,
|
||||
bdi_dev_name(mapping ? inode_to_bdi(mapping->host) :
|
||||
NULL), 32);
|
||||
__entry->ino = mapping ? mapping->host->i_ino : 0;
|
||||
__entry->index = page->index;
|
||||
__entry->index = folio->index;
|
||||
),
|
||||
|
||||
TP_printk("bdi %s: ino=%lu index=%lu",
|
||||
@@ -79,18 +79,18 @@ DECLARE_EVENT_CLASS(writeback_page_template,
|
||||
)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(writeback_page_template, writeback_dirty_page,
|
||||
DEFINE_EVENT(writeback_folio_template, writeback_dirty_folio,
|
||||
|
||||
TP_PROTO(struct page *page, struct address_space *mapping),
|
||||
TP_PROTO(struct folio *folio, struct address_space *mapping),
|
||||
|
||||
TP_ARGS(page, mapping)
|
||||
TP_ARGS(folio, mapping)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(writeback_page_template, wait_on_page_writeback,
|
||||
DEFINE_EVENT(writeback_folio_template, folio_wait_writeback,
|
||||
|
||||
TP_PROTO(struct page *page, struct address_space *mapping),
|
||||
TP_PROTO(struct folio *folio, struct address_space *mapping),
|
||||
|
||||
TP_ARGS(page, mapping)
|
||||
TP_ARGS(folio, mapping)
|
||||
);
|
||||
|
||||
DECLARE_EVENT_CLASS(writeback_dirty_inode_template,
|
||||
|
||||
Reference in New Issue
Block a user