patch-2.1.129 linux/include/linux/swapctl.h
Next file: linux/include/linux/tty.h
Previous file: linux/include/linux/proc_fs.h
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Wed Nov 18 22:48:44 1998
- Orig file:
v2.1.128/linux/include/linux/swapctl.h
- Orig date:
Fri Jul 31 17:05:53 1998
diff -u --recursive --new-file v2.1.128/linux/include/linux/swapctl.h linux/include/linux/swapctl.h
@@ -94,32 +94,6 @@
return n;
}
-static inline void touch_page(struct page *page)
-{
- if (page->age < (MAX_PAGE_AGE - PAGE_ADVANCE))
- page->age += PAGE_ADVANCE;
- else
- page->age = MAX_PAGE_AGE;
-}
-
-static inline void age_page(struct page *page)
-{
- if (page->age > PAGE_DECLINE)
- page->age -= PAGE_DECLINE;
- else
- page->age = 0;
-}
-
-static inline int age_of(unsigned long addr)
-{
- return mem_map[MAP_NR(addr)].age;
-}
-
-static inline void set_page_new(unsigned long addr)
-{
- mem_map[MAP_NR(addr)].age = PAGE_INITIAL_AGE;
-}
-
#endif /* __KERNEL */
#endif /* _LINUX_SWAPCTL_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov