OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Add try_to_remove_exclusive_swap_page stub for CONFIG_SWAP=N
[PATCH] Add try_to_remove_exclusive_swap_page stub for CONFIG_SWAP=N [message #29221] Tue, 08 April 2008 23:18
Florian Westphal is currently offline  Florian Westphal
Messages: 2
Registered: April 2008
Junior Member
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
Previous Topic: [RFC][-mm] [0/2] Basic stats for cgroups V2
Next Topic: [RFC][PATCH] CGroups: Include hierarchy ids in /proc/<pid>/cgroup
Goto Forum:
  


Current Time: Sat Aug 02 20:57:27 GMT 2025

Total time taken to generate the page: 0.61133 seconds