OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.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"
[tomoyo/tomoyo-test1.git]
/
mm
/
gup.c
diff --git
a/mm/gup.c
b/mm/gup.c
index
d3fb60e
..
e0d82b6
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));
}