patch-2.3.11 linux/include/linux/mm.h
Next file: linux/include/linux/parport.h
Previous file: linux/include/linux/list.h
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Wed Jul 21 14:52:49 1999
- Orig file:
v2.3.10/linux/include/linux/mm.h
- Orig date:
Thu Jul 8 15:42:21 1999
diff -u --recursive --new-file v2.3.10/linux/include/linux/mm.h linux/include/linux/mm.h
@@ -128,7 +128,7 @@
wait_queue_head_t wait;
struct page **pprev_hash;
struct buffer_head * buffers;
- int owner; /* temporary debugging check */
+ void *owner; /* temporary debugging check */
} mem_map_t;
#define get_page(p) do { atomic_inc(&(p)->count); \
@@ -167,11 +167,11 @@
do { int _ret = test_and_set_bit(PG_locked, &(page)->flags); \
if (_ret) PAGE_BUG(page); \
if (page->owner) PAGE_BUG(page); \
- page->owner = (int)current; } while (0)
+ page->owner = current; } while (0)
#define TryLockPage(page) ({ int _ret = test_and_set_bit(PG_locked, &(page)->flags); \
- if (!_ret) page->owner = (int)current; _ret; })
+ if (!_ret) page->owner = current; _ret; })
#define UnlockPage(page) do { \
- if (page->owner != (int)current) { \
+ if (page->owner != current) { \
BUG(); } page->owner = 0; \
if (!test_and_clear_bit(PG_locked, &(page)->flags)) { \
PAGE_BUG(page); } wake_up(&page->wait); } while (0)
@@ -306,7 +306,6 @@
extern void free_page_tables(struct mm_struct * mm);
extern void clear_page_tables(struct mm_struct *, unsigned long, int);
-extern int new_page_tables(struct task_struct * tsk);
extern void zap_page_range(struct mm_struct *mm, unsigned long address, unsigned long size);
extern int copy_page_range(struct mm_struct *dst, struct mm_struct *src, struct vm_area_struct *vma);
@@ -328,6 +327,7 @@
extern void show_mem(void);
extern void oom(struct task_struct * tsk);
extern void si_meminfo(struct sysinfo * val);
+extern void swapin_readahead(unsigned long);
/* mmap.c */
extern void vma_init(void);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)