mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
PM: hibernate: flush swap writer after marking
Flush the swap writer after, not before, marking the files, to ensure the
signature is properly written.
Fixes: 6f612af578
("PM / Hibernate: Group swap ops")
Signed-off-by: Laurent Badel <laurentbadel@eaton.com>
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
56c91a1843
commit
fef9c8d28e
@@ -497,10 +497,10 @@ static int swap_writer_finish(struct swap_map_handle *handle,
|
|||||||
unsigned int flags, int error)
|
unsigned int flags, int error)
|
||||||
{
|
{
|
||||||
if (!error) {
|
if (!error) {
|
||||||
flush_swap_writer(handle);
|
|
||||||
pr_info("S");
|
pr_info("S");
|
||||||
error = mark_swapfiles(handle, flags);
|
error = mark_swapfiles(handle, flags);
|
||||||
pr_cont("|\n");
|
pr_cont("|\n");
|
||||||
|
flush_swap_writer(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error)
|
if (error)
|
||||||
|
Reference in New Issue
Block a user