File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1369,6 +1369,7 @@ struct page *f2fs_new_node_page(struct dnode_of_data *dn, unsigned int ofs)
1369
1369
*/
1370
1370
static int read_node_page (struct page * page , blk_opf_t op_flags )
1371
1371
{
1372
+ struct folio * folio = page_folio (page );
1372
1373
struct f2fs_sb_info * sbi = F2FS_P_SB (page );
1373
1374
struct node_info ni ;
1374
1375
struct f2fs_io_info fio = {
@@ -1381,21 +1382,21 @@ static int read_node_page(struct page *page, blk_opf_t op_flags)
1381
1382
};
1382
1383
int err ;
1383
1384
1384
- if (PageUptodate ( page )) {
1385
+ if (folio_test_uptodate ( folio )) {
1385
1386
if (!f2fs_inode_chksum_verify (sbi , page )) {
1386
- ClearPageUptodate ( page );
1387
+ folio_clear_uptodate ( folio );
1387
1388
return - EFSBADCRC ;
1388
1389
}
1389
1390
return LOCKED_PAGE ;
1390
1391
}
1391
1392
1392
- err = f2fs_get_node_info (sbi , page -> index , & ni , false);
1393
+ err = f2fs_get_node_info (sbi , folio -> index , & ni , false);
1393
1394
if (err )
1394
1395
return err ;
1395
1396
1396
1397
/* NEW_ADDR can be seen, after cp_error drops some dirty node pages */
1397
1398
if (unlikely (ni .blk_addr == NULL_ADDR || ni .blk_addr == NEW_ADDR )) {
1398
- ClearPageUptodate ( page );
1399
+ folio_clear_uptodate ( folio );
1399
1400
return - ENOENT ;
1400
1401
}
1401
1402
You can’t perform that action at this time.
0 commit comments