File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -570,7 +570,7 @@ static void swap_read_folio_bdev_sync(struct folio *folio,
570
570
* attempt to access it in the page fault retry time check.
571
571
*/
572
572
get_task_struct (current );
573
- count_vm_event (PSWPIN );
573
+ count_vm_events (PSWPIN , folio_nr_pages ( folio ) );
574
574
submit_bio_wait (& bio );
575
575
__end_swap_bio_read (& bio );
576
576
put_task_struct (current );
@@ -585,7 +585,7 @@ static void swap_read_folio_bdev_async(struct folio *folio,
585
585
bio -> bi_iter .bi_sector = swap_folio_sector (folio );
586
586
bio -> bi_end_io = end_swap_bio_read ;
587
587
bio_add_folio_nofail (bio , folio , folio_size (folio ), 0 );
588
- count_vm_event (PSWPIN );
588
+ count_vm_events (PSWPIN , folio_nr_pages ( folio ) );
589
589
submit_bio (bio );
590
590
}
591
591
You can’t perform that action at this time.
0 commit comments