File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -1680,17 +1680,16 @@ static void z_erofs_pcluster_readmore(struct z_erofs_decompress_frontend *f,
1680
1680
1681
1681
static int z_erofs_read_folio (struct file * file , struct folio * folio )
1682
1682
{
1683
- struct page * page = & folio -> page ;
1684
- struct inode * const inode = page -> mapping -> host ;
1683
+ struct inode * const inode = folio -> mapping -> host ;
1685
1684
struct erofs_sb_info * const sbi = EROFS_I_SB (inode );
1686
1685
struct z_erofs_decompress_frontend f = DECOMPRESS_FRONTEND_INIT (inode );
1687
1686
int err ;
1688
1687
1689
- trace_erofs_readpage ( page , false);
1690
- f .headoffset = (erofs_off_t )page -> index << PAGE_SHIFT ;
1688
+ trace_erofs_read_folio ( folio , false);
1689
+ f .headoffset = (erofs_off_t )folio -> index << PAGE_SHIFT ;
1691
1690
1692
1691
z_erofs_pcluster_readmore (& f , NULL , true);
1693
- err = z_erofs_do_read_page (& f , page );
1692
+ err = z_erofs_do_read_page (& f , & folio -> page );
1694
1693
z_erofs_pcluster_readmore (& f , NULL , false);
1695
1694
(void )z_erofs_collector_end (& f );
1696
1695
Original file line number Diff line number Diff line change @@ -75,11 +75,11 @@ TRACE_EVENT(erofs_fill_inode,
75
75
__entry -> blkaddr , __entry -> ofs )
76
76
);
77
77
78
- TRACE_EVENT (erofs_readpage ,
78
+ TRACE_EVENT (erofs_read_folio ,
79
79
80
- TP_PROTO (struct page * page , bool raw ),
80
+ TP_PROTO (struct folio * folio , bool raw ),
81
81
82
- TP_ARGS (page , raw ),
82
+ TP_ARGS (folio , raw ),
83
83
84
84
TP_STRUCT__entry (
85
85
__field (dev_t , dev )
@@ -91,11 +91,11 @@ TRACE_EVENT(erofs_readpage,
91
91
),
92
92
93
93
TP_fast_assign (
94
- __entry -> dev = page -> mapping -> host -> i_sb -> s_dev ;
95
- __entry -> nid = EROFS_I (page -> mapping -> host )-> nid ;
96
- __entry -> dir = S_ISDIR (page -> mapping -> host -> i_mode );
97
- __entry -> index = page -> index ;
98
- __entry -> uptodate = PageUptodate ( page );
94
+ __entry -> dev = folio -> mapping -> host -> i_sb -> s_dev ;
95
+ __entry -> nid = EROFS_I (folio -> mapping -> host )-> nid ;
96
+ __entry -> dir = S_ISDIR (folio -> mapping -> host -> i_mode );
97
+ __entry -> index = folio -> index ;
98
+ __entry -> uptodate = folio_test_uptodate ( folio );
99
99
__entry -> raw = raw ;
100
100
),
101
101
You can’t perform that action at this time.
0 commit comments