-#ifdef CONFIG_PM
-/* page backup entry */
-typedef struct pbe {
- unsigned long address; /* address of the copy */
- unsigned long orig_address; /* original address of page */
- swp_entry_t swap_address;
- swp_entry_t dummy; /* we need scratch space at
- * end of page (see link, diskpage)
- */
-} suspend_pagedir_t;
-
-#define SWAP_FILENAME_MAXLENGTH 32
-
-
-#define SUSPEND_PD_PAGES(x) (((x)*sizeof(struct pbe))/PAGE_SIZE+1)
-
-/* mm/vmscan.c */
-extern int shrink_mem(void);
+/* struct pbe is used for creating lists of pages that should be restored
+ * atomically during the resume from disk, because the page frames they have
+ * occupied before the suspend are in use.
+ */
+struct pbe {
+ void *address; /* address of the copy */
+ void *orig_address; /* original address of a page */
+ struct pbe *next;
+};