Re: [patch 04/14] free swap space on swap-in/activation

From: MinChan Kim
Date: Mon May 19 2008 - 08:36:26 EST


Hi, Rik.

I don't know where to send this patch. you or mm ?
I guess VM pageout patches didn't send mm-commits yet.

It made compile error in my system that didn't have swap device.

----

Subject: [PATCH] Fix compile error about remove_exclusive_swap_page_ref

It happened compiled error when I removed CONFIG_SWAP in config file
It caused by new API that is 'remove_exclusive_swap_page_ref'.

Signed-off-by: MinChan Kim <minchan.kim@xxxxxxxxx>
---
include/linux/swap.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/linux/swap.h b/include/linux/swap.h
index 4c3a2ef..f34fdb6 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -390,6 +390,11 @@ static inline int remove_exclusive_swap_page(struct page *p)
return 0;
}

+static inline int remove_exclusive_swap_page_ref(struct page *page)
+{
+ return 0;
+}
+
static inline swp_entry_t get_swap_page(void)
{
swp_entry_t entry;
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/