sleep: don't skip resume device with low priority/available space
authorEgor <egor@opensrc.club>
Sun, 3 Oct 2021 00:42:50 +0000 (03:42 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Oct 2021 16:05:25 +0000 (18:05 +0200)
commit9561c3f1b87b3ab10d986fbceac1bb01f055f9e5
tree58e72d7c034b72bf7776f08a061c08a2a8d48512
parenta59bde3c5a4d46bc0589f0b94010cba1b55bbced
sleep: don't skip resume device with low priority/available space

this fixes hibernation when there's a higher priority swap preceding
the resume swap in /proc/swaps.

fixes #19486

(cherry picked from commit 936a7cb66a0b423e75ceef87f02537067ad17002)
(cherry picked from commit 20c776c5e92201e01d4bfbea4ecbc4df758bcf09)
src/shared/sleep-config.c