device_resume();
int swsusp_write(void){	int error;	device_resume();	lock_swapdevices();	error = write_suspend_image();	/* This will unlock ignored swap devices since writing is finished */	lock_swapdevices();	return error;}