Re: [PATCH v2 2/2] mm: don't use compound_head() in virt_to_head_page()

From: Christoph Lameter
Date: Thu Jan 15 2015 - 22:30:21 EST


On Thu, 15 Jan 2015, Andrew Morton wrote:

> And perhaps some explanation here as to why virt_to_head_page() can
> safely use compound_head_fast(). There's an assumption here that
> nobody will be dismantling the compound page while virt_to_head_page()
> is in progress, yes? And this assumption also holds for the calling
> code, because otherwise the virt_to_head_page() return value is kinda
> meaningless.

I think this assumption is pretty natural to make. A coupound_head that
works well while dismantling a compound page should be marked specially
and Joonsoo's definition should be the standard.


--
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/