mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
Merge "mm: ratelimit swap write errors"
This commit is contained in:
commit
ea79263d2f
1 changed files with 3 additions and 2 deletions
|
|
@ -60,8 +60,9 @@ void end_swap_bio_write(struct bio *bio)
|
|||
* Also clear PG_reclaim to avoid rotate_reclaimable_page()
|
||||
*/
|
||||
set_page_dirty(page);
|
||||
pr_alert("Write-error on swap-device (%u:%u:%llu)\n",
|
||||
MAJOR(bio_dev(bio)), MINOR(bio_dev(bio)),
|
||||
pr_alert_ratelimited("Write-error on swap-device (%u:%u:%llu)\n",
|
||||
MAJOR(bio_dev(bio)),
|
||||
MINOR(bio_dev(bio)),
|
||||
(unsigned long long)bio->bi_iter.bi_sector);
|
||||
ClearPageReclaim(page);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue