swap_list_unlock();
spin_unlock(&swap_lock);
static int swsusp_swap_check(void) /* This is called before saving image */{	int i, len;	len=strlen(resume_file);	root_swap = 0xFFFF;	swap_list_lock();	for (i=0; i<MAX_SWAPFILES; i++) {		if (swap_info[i].flags == 0) {			swapfile_used[i]=SWAPFILE_UNUSED;		} else {			if (!len) {	    			printk(KERN_WARNING "resume= option should be used to set suspend device" );				if (root_swap == 0xFFFF) {					swapfile_used[i] = SWAPFILE_SUSPEND;					root_swap = i;				} else					swapfile_used[i] = SWAPFILE_IGNORED;			} else {	  			/* we ignore all swap devices that are not the resume_file */				if (is_resume_device(&swap_info[i])) {					swapfile_used[i] = SWAPFILE_SUSPEND;					root_swap = i;				} else {				  	swapfile_used[i] = SWAPFILE_IGNORED;				}			}		}	}	swap_list_unlock();	return (root_swap != 0xffff) ? 0 : -ENODEV;}