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 f54fcaa commit 2675251Copy full SHA for 2675251
mm/page_io.c
@@ -352,6 +352,7 @@ static void swap_writepage_bdev_async(struct page *page,
352
struct writeback_control *wbc, struct swap_info_struct *sis)
353
{
354
struct bio *bio;
355
+ struct folio *folio = page_folio(page);
356
357
bio = bio_alloc(sis->bdev, 1,
358
REQ_OP_WRITE | REQ_SWAP | wbc_to_write_flags(wbc),
@@ -362,8 +363,8 @@ static void swap_writepage_bdev_async(struct page *page,
362
363
364
bio_associate_blkg_from_page(bio, page);
365
count_swpout_vm_event(page);
- set_page_writeback(page);
366
- unlock_page(page);
+ folio_start_writeback(folio);
367
+ folio_unlock(folio);
368
submit_bio(bio);
369
}
370
0 commit comments