We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3ed1e9 commit bc74b53Copy full SHA for bc74b53
mm/page_io.c
@@ -57,16 +57,16 @@ static void end_swap_bio_write(struct bio *bio)
57
58
static void __end_swap_bio_read(struct bio *bio)
59
{
60
- struct page *page = bio_first_page_all(bio);
+ struct folio *folio = bio_first_folio_all(bio);
61
62
if (bio->bi_status) {
63
pr_alert_ratelimited("Read-error on swap-device (%u:%u:%llu)\n",
64
MAJOR(bio_dev(bio)), MINOR(bio_dev(bio)),
65
(unsigned long long)bio->bi_iter.bi_sector);
66
} else {
67
- SetPageUptodate(page);
+ folio_mark_uptodate(folio);
68
}
69
- unlock_page(page);
+ folio_unlock(folio);
70
71
72
static void end_swap_bio_read(struct bio *bio)
0 commit comments