Lines Matching refs:mm
74 ret = get_user_pages(current, current->mm, in __ipath_get_user_pages()
82 current->mm->pinned_vm += num_pages; in __ipath_get_user_pages()
166 down_write(¤t->mm->mmap_sem); in ipath_get_user_pages()
170 up_write(¤t->mm->mmap_sem); in ipath_get_user_pages()
177 down_write(¤t->mm->mmap_sem); in ipath_release_user_pages()
181 current->mm->pinned_vm -= num_pages; in ipath_release_user_pages()
183 up_write(¤t->mm->mmap_sem); in ipath_release_user_pages()
188 struct mm_struct *mm; member
197 down_write(&work->mm->mmap_sem); in user_pages_account()
198 work->mm->pinned_vm -= work->num_pages; in user_pages_account()
199 up_write(&work->mm->mmap_sem); in user_pages_account()
200 mmput(work->mm); in user_pages_account()
207 struct mm_struct *mm; in ipath_release_user_pages_on_close() local
211 mm = get_task_mm(current); in ipath_release_user_pages_on_close()
212 if (!mm) in ipath_release_user_pages_on_close()
220 work->mm = mm; in ipath_release_user_pages_on_close()
227 mmput(mm); in ipath_release_user_pages_on_close()