Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix VM_CAN_NONLINEAR check in sys_remap_file_pages

The test for VM_CAN_NONLINEAR always fails

Signed-off-by: Yan Zheng<yanzheng@21cn.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Yan Zheng and committed by
Linus Torvalds
dd204d63 a200ee18

+1 -1
+1 -1
mm/fremap.c
··· 160 160 if (vma->vm_private_data && !(vma->vm_flags & VM_NONLINEAR)) 161 161 goto out; 162 162 163 - if (!vma->vm_flags & VM_CAN_NONLINEAR) 163 + if (!(vma->vm_flags & VM_CAN_NONLINEAR)) 164 164 goto out; 165 165 166 166 if (end <= start || start < vma->vm_start || end > vma->vm_end)