/* increase reference count of swap entry by 1.  */
int swap_duplicate(swp_entry_t entry)
/* increase reference count of swap entry by 1.  */
int swap_duplicate(swp_entry_t entry)
{
	int err = 0;
	while (!err && __swap_duplicate(entry, 1) == -ENOMEM)
		err = add_swap_count_continuation(entry, GFP_ATOMIC);
	return err;
}