Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix VM_BUG_ON in swap allocation.

The VM_BUG_ON was being triggered because our invocation of
inc_cluster_info_page for each page in a range of pages being allocated
was including the first page. The first page has already had
inc_cluster_info_page via scan_swap_map.

Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
  • Loading branch information...
commit d6abb8786b3c614bf0d3667c14ac178f250b3df0 1 parent 607d9d7
@NigelCunningham authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mm/swapfile.c
View
2  mm/swapfile.c
@@ -774,7 +774,7 @@ void get_swap_range_of_type(int type, swp_entry_t *start, swp_entry_t *end,
si->lowest_bit = si->max;
si->highest_bit = 0;
}
- for (i = start_at; i <= stop_at; i++)
+ for (i = start_at + 1; i <= stop_at; i++)
inc_cluster_info_page(si, si->cluster_info, i);
si->cluster_next = stop_at + 1;
*start = swp_entry(type, start_at);
Please sign in to comment.
Something went wrong with that request. Please try again.