remove implied vm_ops check
Subsystems (3)
PATCH 4/39 remove implied vm_ops check
From: Paolo 'Blaisorblade' Giarrusso <[email protected]>
If !vma->vm-ops we already BUG above, so retesting it is useless. The compiler cannot optimize this because BUG is a macro and is not thus marked noreturn; that should possibly be fixed.
---
linux-2.6.git-paolo/mm/memory.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
mm/memory.c renamed from mm/memory.c~remove-implied-vm_ops-check +1 -1
@@ -1933,7 +1933,7 @@ static int do_file_page(struct mm_struct* Fall back to the linear mapping if the fs does not support * ->populate: */ -if (!vma->vm_ops || !vma->vm_ops->populate || +if (!vma->vm_ops->populate || (write_access && !(vma->vm_flags &VM_SHARED ))) {pte_clear (mm, address, pte);return do_no_page (mm, vma, address, write_access, pte, pmd);
_
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel