Return-Path: Received: from mail-pa0-x243.google.com (mail-pa0-x243.google.com [IPv6:2607:f8b0:400e:c03::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3r4JD4663xzDqCn for ; Wed, 11 May 2016 11:18:44 +1000 (AEST) Received: by mail-pa0-x243.google.com with SMTP id zy2so2762813pac.2 for ; Tue, 10 May 2016 18:18:44 -0700 (PDT) Subject: Re: [PATCH 2/2] Deduplicate the actual base page size code To: "Aneesh Kumar K.V" , mpe@ellerman.id.au References: <1462892262-18066-1-git-send-email-bsingharora@gmail.com> <1462892262-18066-3-git-send-email-bsingharora@gmail.com> <871t59kcnh.fsf@skywalker.in.ibm.com> Cc: linuxppc-dev@lists.ozlabs.org From: Balbir Singh Message-ID: <8def36ee-f94f-8d31-da87-dfe896df4df4@gmail.com> Date: Wed, 11 May 2016 11:18:33 +1000 MIME-Version: 1.0 In-Reply-To: <871t59kcnh.fsf@skywalker.in.ibm.com> Content-Type: text/plain; charset=windows-1252 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 11/05/16 04:09, Aneesh Kumar K.V wrote: > Balbir Singh writes: > >> Deduplicate to one function to compute the actual page size. >> Some additional warnings added for AP size as well. > > > This is getting chaned in a cleanup series I am testing before posting. > The change from ap to psize need more update in commit message. > > commit 701e0d3dc33c93a97b825f403d58f6be99b89203 > Author: Aneesh Kumar K.V > Date: Tue May 10 11:33:15 2016 +0530 > > powerpc/mm/radix/hugetlb: Add helper for finding page size from hstate > > Use the helper instead of open coding the same at multiple place > > Signed-off-by: Aneesh Kumar K.V This version makes more sense. While we are at it, mind replacing psize with base_psize and asserting that base_psize is always 0 or 5. Balbir Singh.