git.codelabs.ch
/
muen
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "mm: replace p??_write with pte_access_permitted in fault + gup paths"
[muen/linux.git]
/
mm
/
gup.c
diff --git
a/mm/gup.c
b/mm/gup.c
index d3fb60e5bfacd4c733957dc526c28c41bd2321d1..e0d82b6706d72d82637bca5eaef1e35e15a1abdf 100644
(file)
--- a/
mm/gup.c
+++ b/
mm/gup.c
@@
-66,7
+66,7
@@
static int follow_pfn_pte(struct vm_area_struct *vma, unsigned long address,
*/
static inline bool can_follow_write_pte(pte_t pte, unsigned int flags)
{
- return pte_
access_permitted(pte, WRITE
) ||
+ return pte_
write(pte
) ||
((flags & FOLL_FORCE) && (flags & FOLL_COW) && pte_dirty(pte));
}