aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>2005-09-03 18:54:56 -0400
committerLinus Torvalds <torvalds@evo.osdl.org>2005-09-05 03:05:45 -0400
commit4944e76d81801b8e60ed3e7789443f210c16ed65 (patch)
treed20096acf35b1af03eba1d043e6376a154cae054 /mm
parentd44ed4f86892e350f4b16a3489b7e7c1a9bb7ead (diff)
[PATCH] mm: remove implied vm_ops check
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. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c
index a596c1172248..b25f5e58a14c 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -1955,7 +1955,7 @@ static int do_file_page(struct mm_struct * mm, struct vm_area_struct * vma,
1955 * Fall back to the linear mapping if the fs does not support 1955 * Fall back to the linear mapping if the fs does not support
1956 * ->populate: 1956 * ->populate:
1957 */ 1957 */
1958 if (!vma->vm_ops || !vma->vm_ops->populate || 1958 if (!vma->vm_ops->populate ||
1959 (write_access && !(vma->vm_flags & VM_SHARED))) { 1959 (write_access && !(vma->vm_flags & VM_SHARED))) {
1960 pte_clear(mm, address, pte); 1960 pte_clear(mm, address, pte);
1961 return do_no_page(mm, vma, address, write_access, pte, pmd); 1961 return do_no_page(mm, vma, address, write_access, pte, pmd);