|
@@ -1471,7 +1471,6 @@ static void _enable_swap_info(struct swap_info_struct *p, int prio,
|
|
|
swap_list.head = swap_list.next = p->type;
|
|
|
else
|
|
|
swap_info[prev]->next = p->type;
|
|
|
- frontswap_init(p->type);
|
|
|
}
|
|
|
|
|
|
static void enable_swap_info(struct swap_info_struct *p, int prio,
|
|
@@ -1480,6 +1479,7 @@ static void enable_swap_info(struct swap_info_struct *p, int prio,
|
|
|
{
|
|
|
spin_lock(&swap_lock);
|
|
|
_enable_swap_info(p, prio, swap_map, frontswap_map);
|
|
|
+ frontswap_init(p->type);
|
|
|
spin_unlock(&swap_lock);
|
|
|
}
|
|
|
|