mm: break up swap_writepage() for frontswap backends
[firefly-linux-kernel-4.4.55.git] / mm / swap_state.c
index 7efcf1525921037d434060f73c0ff77b9981e02c..fe43fd5578cf203c871891c9eb143fc05acd94a2 100644 (file)
@@ -78,7 +78,7 @@ void show_swap_cache_info(void)
  * __add_to_swap_cache resembles add_to_page_cache_locked on swapper_space,
  * but sets SwapCache flag and private instead of mapping and index.
  */
-static int __add_to_swap_cache(struct page *page, swp_entry_t entry)
+int __add_to_swap_cache(struct page *page, swp_entry_t entry)
 {
        int error;
        struct address_space *address_space;