On Mon, 2010-04-12 at 13:22 -0700, Linus Torvalds wrote:Maybe write that as: static int anon_vma_compatible(struct vm_area_struct *a, struct vm_area_struct *b) { if (a->vm_end != b->vm_start) return 0; if (!mpol_equal(vma_policy(a), vma_policy(b)) return 0; if (a->vm_file != b->vm_file) return 0; if ((a->vm_flags ^ b->vm_flags) & ~(VM_READ|VM_WRITE|VM_EXEC)) return 0; if (a->vm_pgoff + ((b->vm_start - a->vm_start) >> PAGE_SHIFT) != b->vm_pgoff) return 0; return 1; } --
