mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
PM: hibernate: flush swap writer after marking
commitfef9c8d28eupstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e6e9ded8ff
commit
c95981ecd9
@@ -497,10 +497,10 @@ static int swap_writer_finish(struct swap_map_handle *handle,
|
||||
unsigned int flags, int error)
|
||||
{
|
||||
if (!error) {
|
||||
flush_swap_writer(handle);
|
||||
pr_info("S");
|
||||
error = mark_swapfiles(handle, flags);
|
||||
pr_cont("|\n");
|
||||
flush_swap_writer(handle);
|
||||
}
|
||||
|
||||
if (error)
|
||||
|
||||
Reference in New Issue
Block a user