diff options
author | Peter Zijlstra <peterz@infradead.org> | 2009-06-25 11:58:55 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-25 11:22:13 -0700 |
commit | 9d73777e500929b71dcfed16eec05f6760e345a6 (patch) | |
tree | 7b2d0e7a619b4a5c994ca8789e680f6e7642849c /include | |
parent | ab420e6d9c2511b862d753b70efb4e979faa0714 (diff) | |
download | lwn-9d73777e500929b71dcfed16eec05f6760e345a6.tar.gz lwn-9d73777e500929b71dcfed16eec05f6760e345a6.zip |
clarify get_user_pages() prototype
Currently the 4th parameter of get_user_pages() is called len, but its
in pages, not bytes. Rename the thing to nr_pages to avoid future
confusion.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index d006e93d5c93..ba3a7cb1eaa0 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -826,7 +826,7 @@ 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); int get_user_pages(struct task_struct *tsk, struct mm_struct *mm, - unsigned long start, int len, int write, int force, + unsigned long start, int nr_pages, int write, int force, struct page **pages, struct vm_area_struct **vmas); int get_user_pages_fast(unsigned long start, int nr_pages, int write, struct page **pages); |