]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mm: remove implied vm_ops check
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Sat, 3 Sep 2005 22:54:56 +0000 (15:54 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Mon, 5 Sep 2005 07:05:45 +0000 (00:05 -0700)
commitd6b0fa4123e25ab3eddafc519039688c23b67a16
treed20096acf35b1af03eba1d043e6376a154cae054
parent1c1946641c2d9c2ce8007723d24fda9057cdca72
[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>
mm/memory.c