static bool swap_count_continued(struct swap_info_struct *, pgoff_t,
unsigned char);
static void free_swap_count_continuations(struct swap_info_struct *);
-static sector_t map_swap_entry(swp_entry_t, struct block_device**);
DEFINE_SPINLOCK(swap_lock);
static unsigned int nr_swapfiles;
}
#ifdef CONFIG_HIBERNATION
+
+static sector_t map_swap_entry(swp_entry_t, struct block_device**);
+
/*
* Find the swap type that corresponds to given device (if any).
*
spin_unlock(&mmlist_lock);
}
+#ifdef CONFIG_HIBERNATION
/*
* Use this swapdev's extent info to locate the (PAGE_SIZE) block which
* corresponds to page offset for the specified swap entry.
se = offset_to_swap_extent(sis, offset);
return se->start_block + (offset - se->start_page);
}
+#endif
/*
* Free all of a swapdev's extent information