diff options
author | Yan Zheng <yanzheng@21cn.com> | 2007-10-08 19:05:48 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-08 21:58:14 +0200 |
commit | dd204d63cd11509081b41d7ab305fdc173382039 (patch) | |
tree | 12dcbf4b258de6962b960f4f5fdd46866d7bcdc3 /mm | |
parent | mm: set_page_dirty_balance() vs ->page_mkwrite() (diff) | |
download | linux-dd204d63cd11509081b41d7ab305fdc173382039.tar.xz linux-dd204d63cd11509081b41d7ab305fdc173382039.zip |
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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/fremap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/fremap.c b/mm/fremap.c index c395b1abf082..95bcb5641c72 100644 --- a/mm/fremap.c +++ b/mm/fremap.c @@ -160,7 +160,7 @@ asmlinkage long sys_remap_file_pages(unsigned long start, unsigned long size, if (vma->vm_private_data && !(vma->vm_flags & VM_NONLINEAR)) goto out; - if (!vma->vm_flags & VM_CAN_NONLINEAR) + if (!(vma->vm_flags & VM_CAN_NONLINEAR)) goto out; if (end <= start || start < vma->vm_start || end > vma->vm_end) |