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 @@ -1822,17 +1822,16 @@ static void z_erofs_pcluster_readmore(struct z_erofs_decompress_frontend *f,
1822
1822
1823
1823
static int z_erofs_read_folio (struct file * file , struct folio * folio )
1824
1824
{
1825
- struct page * page = & folio -> page ;
1826
- struct inode * const inode = page -> mapping -> host ;
1825
+ struct inode * const inode = folio -> mapping -> host ;
1827
1826
struct erofs_sb_info * const sbi = EROFS_I_SB (inode );
1828
1827
struct z_erofs_decompress_frontend f = DECOMPRESS_FRONTEND_INIT (inode );
1829
1828
int err ;
1830
1829
1831
- trace_erofs_readpage ( page , false);
1832
- f .headoffset = (erofs_off_t )page -> index << PAGE_SHIFT ;
1830
+ trace_erofs_read_folio ( folio , false);
1831
+ f .headoffset = (erofs_off_t )folio -> index << PAGE_SHIFT ;
1833
1832
1834
1833
z_erofs_pcluster_readmore (& f , NULL , true);
1835
- err = z_erofs_do_read_page (& f , page );
1834
+ err = z_erofs_do_read_page (& f , & folio -> page );
1836
1835
z_erofs_pcluster_readmore (& f , NULL , false);
1837
1836
z_erofs_pcluster_end (& f );
1838
1837
Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ TRACE_EVENT(erofs_fill_inode,
80
80
__entry -> blkaddr , __entry -> ofs )
81
81
);
82
82
83
- TRACE_EVENT (erofs_readpage ,
83
+ TRACE_EVENT (erofs_read_folio ,
84
84
85
- TP_PROTO (struct page * page , bool raw ),
85
+ TP_PROTO (struct folio * folio , bool raw ),
86
86
87
- TP_ARGS (page , raw ),
87
+ TP_ARGS (folio , raw ),
88
88
89
89
TP_STRUCT__entry (
90
90
__field (dev_t , dev )
@@ -96,11 +96,11 @@ TRACE_EVENT(erofs_readpage,
96
96
),
97
97
98
98
TP_fast_assign (
99
- __entry -> dev = page -> mapping -> host -> i_sb -> s_dev ;
100
- __entry -> nid = EROFS_I (page -> mapping -> host )-> nid ;
101
- __entry -> dir = S_ISDIR (page -> mapping -> host -> i_mode );
102
- __entry -> index = page -> index ;
103
- __entry -> uptodate = PageUptodate ( page );
99
+ __entry -> dev = folio -> mapping -> host -> i_sb -> s_dev ;
100
+ __entry -> nid = EROFS_I (folio -> mapping -> host )-> nid ;
101
+ __entry -> dir = S_ISDIR (folio -> mapping -> host -> i_mode );
102
+ __entry -> index = folio -> index ;
103
+ __entry -> uptodate = folio_test_uptodate ( folio );
104
104
__entry -> raw = raw ;
105
105
),
106
106
You can’t perform that action at this time.
0 commit comments