export symbols kvm swapout required
Signed-off-by: Shaohua Li <[email protected]>
Index: linux/mm/swap_state.c
===================================================================
--- linux.orig/mm/swap_state.c 2007-07-23 13:06:20.000000000 +0800
+++ linux/mm/swap_state.c 2007-07-23 13:29:14.000000000 +0800
@@ -207,6 +207,7 @@ void delete_from_swap_cache(struct page
swap_free(entry);
page_cache_release(page);
}
+EXPORT_SYMBOL(delete_from_swap_cache);
/*
* Strange swizzling function only for use by shmem_writepage
@@ -225,6 +226,7 @@ int move_to_swap_cache(struct page *page
INC_CACHE_INFO(exist_race);
return err;
}
+EXPORT_SYMBOL(move_to_swap_cache);
/*
* Strange swizzling function for shmem_getpage (and shmem_unuse)
@@ -307,6 +309,7 @@ struct page * lookup_swap_cache(swp_entr
INC_CACHE_INFO(find_total);
return page;
}
+EXPORT_SYMBOL(lookup_swap_cache);
/*
* Locate a page of swap in physical memory, reserving swap cache space
@@ -364,3 +367,4 @@ struct page *read_swap_cache_async(swp_e
page_cache_release(new_page);
return found_page;
}
+EXPORT_SYMBOL(read_swap_cache_async);
Index: linux/mm/swapfile.c
===================================================================
--- linux.orig/mm/swapfile.c 2007-07-23 13:06:20.000000000 +0800
+++ linux/mm/swapfile.c 2007-07-23 13:29:14.000000000 +0800
@@ -211,6 +211,7 @@ noswap:
spin_unlock(&swap_lock);
return (swp_entry_t) {0};
}
+EXPORT_SYMBOL(get_swap_page);
swp_entry_t get_swap_page_of_type(int type)
{
@@ -303,6 +304,7 @@ void swap_free(swp_entry_t entry)
spin_unlock(&swap_lock);
}
}
+EXPORT_SYMBOL(swap_free);
/*
* How many references to page are currently swapped out?
Index: linux/mm/filemap.c
===================================================================
--- linux.orig/mm/filemap.c 2007-07-23 13:06:20.000000000 +0800
+++ linux/mm/filemap.c 2007-07-23 13:29:14.000000000 +0800
@@ -465,6 +465,7 @@ int add_to_page_cache_lru(struct page *p
lru_cache_add(page);
return ret;
}
+EXPORT_SYMBOL(add_to_page_cache_lru);
#ifdef CONFIG_NUMA
struct page *__page_cache_alloc(gfp_t gfp)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]