/* How many references to page are currently swapped out? This does not give an exact answer when swap count is continued, but does include the high COUNT_CONTINUED flag to allow for that.  */
static int page_swapcount(struct page *page)
/* How many references to page are currently swapped out? This does not give an exact answer when swap count is continued, but does include the high COUNT_CONTINUED flag to allow for that.  */
static int page_swapcount(struct page *page)
{
	int count = 0;
	struct swap_info_struct *p;
	swp_entry_t entry;
	entry.val = page_private(page);
	p = swap_info_get(entry);
	if (p) {
		count = swap_count(p->swap_map[swp_offset(entry)]);
		spin_unlock(&swap_lock);
	}
	return count;
}