diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-05-14 19:00:46 -0700 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2003-05-14 19:00:46 -0700 |
| commit | d2f2128642573712d602f9d661e98b860f50e500 (patch) | |
| tree | abe5b013861d9d897b8658e7d05d75b6096cc078 /include/linux | |
| parent | a397214bacd2ce0df194fe4e12cab9696323d78f (diff) | |
[PATCH] pass the stack protection flags into put_dirty_page()
put_dirty_page() currently assumes PAGE_COPY for the stack page's ptes. But
for x86_64 (at least) this is not the case.
The patch adds the extra arg to put_dirty_page(), updates all callers and fixes
x86_64.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 51f5377ec8fc..45d2caa856ed 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -426,7 +426,8 @@ extern int handle_mm_fault(struct mm_struct *mm,struct vm_area_struct *vma, unsi extern int make_pages_present(unsigned long addr, unsigned long end); extern int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, int write); extern long sys_remap_file_pages(unsigned long start, unsigned long size, unsigned long prot, unsigned long pgoff, unsigned long nonblock); - +void put_dirty_page(struct task_struct *tsk, struct page *page, + unsigned long address, pgprot_t prot); int get_user_pages(struct task_struct *tsk, struct mm_struct *mm, unsigned long start, int len, int write, int force, struct page **pages, struct vm_area_struct **vmas); |
