pager_req_pfn(): use FAULT_FLAG_USER only if defined

This commit is contained in:
Balazs Gerofi
2016-07-13 18:05:20 +09:00
parent dad6470c60
commit 6118faffa9

View File

@ -1361,7 +1361,9 @@ retry:
struct vm_area_struct *vma;
int fault;
#if defined(FAULT_FLAG_USER)
flags |= FAULT_FLAG_USER;
#endif
vma = find_vma(current->mm, va);
if (!vma || (va < vma->vm_start)) {