diff --git a/[refs] b/[refs] index e0db3f12dbcf..99922f6fc3c0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cf0cac0a09341549dedabcfc2a66dcbc2eaaf2b9 +refs/heads/master: 6555bc035731eab76c0901925034465d3ad2099c diff --git a/trunk/mm/swapfile.c b/trunk/mm/swapfile.c index 27a52b731576..0fbb45283c66 100644 --- a/trunk/mm/swapfile.c +++ b/trunk/mm/swapfile.c @@ -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); }