diff -urNp --exclude CVS --exclude BitKeeper --exclude {arch} --exclude .arch-ids sles-objrmap/fs/exec.c sles-anobjrmap-1/fs/exec.c --- sles-objrmap/fs/exec.c 2004-03-03 06:45:38.000000000 +0100 +++ sles-anobjrmap-1/fs/exec.c 2004-03-05 05:12:30.690552976 +0100 @@ -44,7 +44,7 @@ #include #include #include -#include +#include #include #include diff -urNp --exclude CVS --exclude BitKeeper --exclude {arch} --exclude .arch-ids sles-objrmap/include/linux/rmap.h sles-anobjrmap-1/include/linux/rmap.h --- sles-objrmap/include/linux/rmap.h 1970-01-01 01:00:00.000000000 +0100 +++ sles-anobjrmap-1/include/linux/rmap.h 2004-03-05 05:27:41.474092832 +0100 @@ -0,0 +1,53 @@ +#ifndef _LINUX_RMAP_H +#define _LINUX_RMAP_H +/* + * Declarations for Reverse Mapping functions in mm/rmap.c + * Its structures are declared within that file. + */ +#include + +#ifdef CONFIG_MMU + +#include +#include + +struct pte_chain; +extern kmem_cache_t *pte_chain_cache; + +#define pte_chain_lock(page) bit_spin_lock(PG_chainlock, &page->flags) +#define pte_chain_unlock(page) bit_spin_unlock(PG_chainlock, &page->flags) + +struct pte_chain *pte_chain_alloc(int gfp_flags); +void __pte_chain_free(struct pte_chain *pte_chain); + +static inline void pte_chain_free(struct pte_chain *pte_chain) +{ + if (pte_chain) + __pte_chain_free(pte_chain); +} + +int FASTCALL(page_referenced(struct page *)); +struct pte_chain *FASTCALL(page_add_rmap(struct page *, pte_t *, + struct pte_chain *)); +void FASTCALL(page_remove_rmap(struct page *, pte_t *)); +int page_convert_anon(struct page *); + +/* + * Called from mm/vmscan.c to handle paging out + */ +int FASTCALL(try_to_unmap(struct page *)); + +/* + * Return values of try_to_unmap + */ +#define SWAP_SUCCESS 0 +#define SWAP_AGAIN 1 +#define SWAP_FAIL 2 + +#else /* !CONFIG_MMU */ + +#define page_referenced(page) TestClearPageReferenced(page) + +#endif /* CONFIG_MMU */ + +#endif /* _LINUX_RMAP_H */ diff -urNp --exclude CVS --exclude BitKeeper --exclude {arch} --exclude .arch-ids sles-objrmap/include/linux/rmap-locking.h sles-anobjrmap-1/include/linux/rmap-locking.h --- sles-objrmap/include/linux/rmap-locking.h 2003-07-17 01:55:06.000000000 +0200 +++ sles-anobjrmap-1/include/linux/rmap-locking.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,23 +0,0 @@ -/* - * include/linux/rmap-locking.h - * - * Locking primitives for exclusive access to a page's reverse-mapping - * pte chain. - */ - -#include - -struct pte_chain; -extern kmem_cache_t *pte_chain_cache; - -#define pte_chain_lock(page) bit_spin_lock(PG_chainlock, &page->flags) -#define pte_chain_unlock(page) bit_spin_unlock(PG_chainlock, &page->flags) - -struct pte_chain *pte_chain_alloc(int gfp_flags); -void __pte_chain_free(struct pte_chain *pte_chain); - -static inline void pte_chain_free(struct pte_chain *pte_chain) -{ - if (pte_chain) - __pte_chain_free(pte_chain); -} diff -urNp --exclude CVS --exclude BitKeeper --exclude {arch} --exclude .arch-ids sles-objrmap/include/linux/swap.h sles-anobjrmap-1/include/linux/swap.h --- sles-objrmap/include/linux/swap.h 2004-03-03 06:45:38.000000000 +0100 +++ sles-anobjrmap-1/include/linux/swap.h 2004-03-05 05:27:14.988119312 +0100 @@ -76,7 +76,6 @@ struct reclaim_state { #ifdef __KERNEL__ struct address_space; -struct pte_chain; struct sysinfo; struct writeback_control; struct zone; @@ -177,28 +176,11 @@ extern int try_to_free_pages(struct zone extern int shrink_all_memory(int); extern int vm_swappiness; -/* linux/mm/rmap.c */ #ifdef CONFIG_MMU -int FASTCALL(page_referenced(struct page *)); -struct pte_chain *FASTCALL(page_add_rmap(struct page *, pte_t *, - struct pte_chain *)); -void FASTCALL(page_remove_rmap(struct page *, pte_t *)); -int FASTCALL(try_to_unmap(struct page *)); - -int page_convert_anon(struct page *); - /* linux/mm/shmem.c */ extern int shmem_unuse(swp_entry_t entry, struct page *page); -#else -#define page_referenced(page) TestClearPageReferenced(page) -#define try_to_unmap(page) SWAP_FAIL #endif /* CONFIG_MMU */ -/* return values of try_to_unmap */ -#define SWAP_SUCCESS 0 -#define SWAP_AGAIN 1 -#define SWAP_FAIL 2 - #ifdef CONFIG_SWAP /* linux/mm/page_io.c */ extern int swap_readpage(struct file *, struct page *); diff -urNp --exclude CVS --exclude BitKeeper --exclude {arch} --exclude .arch-ids sles-objrmap/mm/fremap.c sles-anobjrmap-1/mm/fremap.c --- sles-objrmap/mm/fremap.c 2004-03-03 06:45:38.000000000 +0100 +++ sles-anobjrmap-1/mm/fremap.c 2004-03-05 05:24:20.279679032 +0100 @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include diff -urNp --exclude CVS --exclude BitKeeper --exclude {arch} --exclude .arch-ids sles-objrmap/mm/memory.c sles-anobjrmap-1/mm/memory.c --- sles-objrmap/mm/memory.c 2004-03-03 06:45:38.000000000 +0100 +++ sles-anobjrmap-1/mm/memory.c 2004-03-05 05:24:35.620346896 +0100 @@ -43,7 +43,7 @@ #include #include #include -#include +#include #include #include diff -urNp --exclude CVS --exclude BitKeeper --exclude {arch} --exclude .arch-ids sles-objrmap/mm/mremap.c sles-anobjrmap-1/mm/mremap.c --- sles-objrmap/mm/mremap.c 2004-02-20 17:26:54.000000000 +0100 +++ sles-anobjrmap-1/mm/mremap.c 2004-03-05 05:24:38.666883752 +0100 @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include diff -urNp --exclude CVS --exclude BitKeeper --exclude {arch} --exclude .arch-ids sles-objrmap/mm/rmap.c sles-anobjrmap-1/mm/rmap.c --- sles-objrmap/mm/rmap.c 2004-03-05 05:39:46.877814704 +0100 +++ sles-anobjrmap-1/mm/rmap.c 2004-03-05 05:40:21.309580280 +0100 @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include diff -urNp --exclude CVS --exclude BitKeeper --exclude {arch} --exclude .arch-ids sles-objrmap/mm/swapfile.c sles-anobjrmap-1/mm/swapfile.c --- sles-objrmap/mm/swapfile.c 2004-03-03 07:03:33.000000000 +0100 +++ sles-anobjrmap-1/mm/swapfile.c 2004-03-05 05:24:44.954927824 +0100 @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include diff -urNp --exclude CVS --exclude BitKeeper --exclude {arch} --exclude .arch-ids sles-objrmap/mm/vmscan.c sles-anobjrmap-1/mm/vmscan.c --- sles-objrmap/mm/vmscan.c 2004-02-20 17:26:54.000000000 +0100 +++ sles-anobjrmap-1/mm/vmscan.c 2004-03-05 05:24:48.074453584 +0100 @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include