File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 29
29
30
30
static void __end_swap_bio_write (struct bio * bio )
31
31
{
32
- struct page * page = bio_first_page_all (bio );
32
+ struct folio * folio = bio_first_folio_all (bio );
33
33
34
34
if (bio -> bi_status ) {
35
35
/*
@@ -40,13 +40,13 @@ static void __end_swap_bio_write(struct bio *bio)
40
40
*
41
41
* Also clear PG_reclaim to avoid folio_rotate_reclaimable()
42
42
*/
43
- set_page_dirty ( page );
43
+ folio_mark_dirty ( folio );
44
44
pr_alert_ratelimited ("Write-error on swap-device (%u:%u:%llu)\n" ,
45
45
MAJOR (bio_dev (bio )), MINOR (bio_dev (bio )),
46
46
(unsigned long long )bio -> bi_iter .bi_sector );
47
- ClearPageReclaim ( page );
47
+ folio_clear_reclaim ( folio );
48
48
}
49
- end_page_writeback ( page );
49
+ folio_end_writeback ( folio );
50
50
}
51
51
52
52
static void end_swap_bio_write (struct bio * bio )
You can’t perform that action at this time.
0 commit comments