Re: [PATCH v5 03/29] vfio: powerpc/spapr: Check that TCE page size is equal to it_page_size
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2015-03-10 23:15:16
Also in:
kvm, lkml
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2015-03-10 23:15:16
Also in:
kvm, lkml
On Tue, 2015-03-10 at 17:03 -0600, Alex Williamson wrote:
quoted
quoted
return (PAGE_SHIFT + compound_order(compound_head(page) >= page_shift);This won't be "bool" though.Yes, it will.
Don't you have your parenthesis in the wrong place, Alex ? :-)
quoted
This will (I'll do this) shift = PAGE_SHIFT + compound_order(compound_head(page)); return (shift >= page_shift);