[Devel] [PATCH] Add try_to_remove_exclusive_swap_page stub for CONFIG_SWAP=N
Florian Westphal
fw at strlen.de
Tue Apr 8 16:18:26 PDT 2008
mm/memory.c: In function 'do_swap_page':
mm/memory.c:2194: error: implicit declaration of function 'try_to_remove_exclusive_swap_page'
---
patch applies on top of
c77d67e020b658888c69f9133850e298b7c3d02e
'UBC: fix preempt_enable() placement in dcache accounting' in linux-2.6.24-openvz.
diff --git a/include/linux/swap.h b/include/linux/swap.h
index 03c8590..4c19128 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -371,6 +371,11 @@ static inline int remove_exclusive_swap_page(struct page *p)
return 0;
}
+static inline int try_to_remove_exclusive_swap_page(struct page *page)
+{
+ return 0;
+}
+
static inline swp_entry_t get_swap_page(struct user_beancounter *ub)
{
swp_entry_t entry;
--
1.5.3.7
More information about the Devel
mailing list