Re: [PATCH -v2] rmap: make anon_vma_prepare link in all the anon_vmasof a mergeable VMA

From: Linus Torvalds
Date: Sat Apr 10 2010 - 19:36:01 EST




On Sun, 11 Apr 2010, Johannes Weiner wrote:
>
> Did you have something in mind that I missed?

Mostly that the corner cases will never matter, and I'd prefer to keep the
code simpler than to care deeply.

For example, the only case you'd see vm_ops->close() is for special device
mappings. It's true that they cannot have their vma's merged, but it's
also true that they (a) will seldom have anon_vma's anyway and (b) would
never get mapped very many times so that anon_vma merging would be an
issue.

In other words, it's a "don't care" situation, where to keep the code
simpler we just document that we don't care.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/