-
- /*
- * Do a quick atomic lookup first - this is the fastpath.
- */
- spin_lock(¤t->mm->page_table_lock);
- page = follow_page(mm, uaddr, 0);
- if (likely(page != NULL)) {
- key->shared.pgoff =
- page->index << (PAGE_CACHE_SHIFT - PAGE_SHIFT);
- spin_unlock(¤t->mm->page_table_lock);
- return 0;
- }
- spin_unlock(¤t->mm->page_table_lock);
-
- /*
- * Do it the general way.
- */