@@ -1445,18 +1445,18 @@ static ssize_t ubifs_write_iter(struct kiocb *iocb, struct iov_iter *from)
1445
1445
return generic_file_write_iter (iocb , from );
1446
1446
}
1447
1447
1448
- static int ubifs_set_page_dirty (struct page * page )
1448
+ static bool ubifs_dirty_folio (struct address_space * mapping ,
1449
+ struct folio * folio )
1449
1450
{
1450
- int ret ;
1451
- struct inode * inode = page -> mapping -> host ;
1452
- struct ubifs_info * c = inode -> i_sb -> s_fs_info ;
1451
+ bool ret ;
1452
+ struct ubifs_info * c = mapping -> host -> i_sb -> s_fs_info ;
1453
1453
1454
- ret = __set_page_dirty_nobuffers ( page );
1454
+ ret = filemap_dirty_folio ( mapping , folio );
1455
1455
/*
1456
1456
* An attempt to dirty a page without budgeting for it - should not
1457
1457
* happen.
1458
1458
*/
1459
- ubifs_assert (c , ret == 0 );
1459
+ ubifs_assert (c , ret == false );
1460
1460
return ret ;
1461
1461
}
1462
1462
@@ -1647,7 +1647,7 @@ const struct address_space_operations ubifs_file_address_operations = {
1647
1647
.write_begin = ubifs_write_begin ,
1648
1648
.write_end = ubifs_write_end ,
1649
1649
.invalidate_folio = ubifs_invalidate_folio ,
1650
- .set_page_dirty = ubifs_set_page_dirty ,
1650
+ .dirty_folio = ubifs_dirty_folio ,
1651
1651
#ifdef CONFIG_MIGRATION
1652
1652
.migratepage = ubifs_migrate_page ,
1653
1653
#endif
0 commit comments