Loading kernel/power/swap.c +2 −2 Original line number Diff line number Diff line Loading @@ -879,7 +879,7 @@ static int save_image_lzo(struct swap_map_handle *handle, * space avaiable from the resume partition. */ static int enough_swap(unsigned int nr_pages, unsigned int flags) static int enough_swap(unsigned int nr_pages) { unsigned int free_swap = count_swap_pages(root_swap, 1); unsigned int required; Loading Loading @@ -915,7 +915,7 @@ int swsusp_write(unsigned int flags) return error; } if (flags & SF_NOCOMPRESS_MODE) { if (!enough_swap(pages, flags)) { if (!enough_swap(pages)) { pr_err("Not enough free swap\n"); error = -ENOSPC; goto out_finish; Loading Loading
kernel/power/swap.c +2 −2 Original line number Diff line number Diff line Loading @@ -879,7 +879,7 @@ static int save_image_lzo(struct swap_map_handle *handle, * space avaiable from the resume partition. */ static int enough_swap(unsigned int nr_pages, unsigned int flags) static int enough_swap(unsigned int nr_pages) { unsigned int free_swap = count_swap_pages(root_swap, 1); unsigned int required; Loading Loading @@ -915,7 +915,7 @@ int swsusp_write(unsigned int flags) return error; } if (flags & SF_NOCOMPRESS_MODE) { if (!enough_swap(pages, flags)) { if (!enough_swap(pages)) { pr_err("Not enough free swap\n"); error = -ENOSPC; goto out_finish; Loading