36
36
{ CURSEG_COLD_NODE, "Cold NODE" }, \
37
37
{ NO_CHECK_TYPE, "No TYPE" })
39
#define show_file_type(type) \
40
__print_symbolic(type, \
39
44
#define show_gc_type(type) \
40
45
__print_symbolic(type, \
41
46
{ FG_GC, "Foreground GC" }, \
631
DECLARE_EVENT_CLASS(f2fs__page,
633
TP_PROTO(struct page *page, int type),
642
__field(pgoff_t, index)
647
__entry->dev = page->mapping->host->i_sb->s_dev;
648
__entry->ino = page->mapping->host->i_ino;
649
__entry->type = type;
650
__entry->dir = S_ISDIR(page->mapping->host->i_mode);
651
__entry->index = page->index;
652
__entry->dirty = PageDirty(page);
655
TP_printk("dev = (%d,%d), ino = %lu, %s, %s, index = %lu, dirty = %d",
656
show_dev_ino(__entry),
657
show_block_type(__entry->type),
658
show_file_type(__entry->dir),
659
(unsigned long)__entry->index,
663
DEFINE_EVENT(f2fs__page, f2fs_set_page_dirty,
665
TP_PROTO(struct page *page, int type),
670
DEFINE_EVENT(f2fs__page, f2fs_vm_page_mkwrite,
672
TP_PROTO(struct page *page, int type),
626
677
TRACE_EVENT(f2fs_submit_write_page,
628
679
TP_PROTO(struct page *page, block_t blk_addr, int type),