From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757814AbcIMJdD (ORCPT ); Tue, 13 Sep 2016 05:33:03 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:37229 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754558AbcIMJdB (ORCPT ); Tue, 13 Sep 2016 05:33:01 -0400 Date: Tue, 13 Sep 2016 12:32:58 +0300 From: "Kirill A. Shutemov" To: Rui Teng Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Michal Hocko , Naoya Horiguchi , Chen Gang , "Kirill A . Shutemov" , Vlastimil Babka , "Aneesh Kumar K . V" , hejianet@linux.vnet.ibm.com Subject: Re: [RFC] mm: Change the data type of huge page size from unsigned long to u64 Message-ID: <20160913093257.GA31186@node> References: <1473758765-13673-1-git-send-email-rui.teng@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1473758765-13673-1-git-send-email-rui.teng@linux.vnet.ibm.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 13, 2016 at 05:26:05PM +0800, Rui Teng wrote: > The huge page size could be 16G(0x400000000) on ppc64 architecture, and it will > cause an overflow on unsigned long data type(0xFFFFFFFF). Huh? ppc64 is 64-bit system and sizeof(void *) is equal to sizeof(unsigned long) on Linux (LP64 model). So where your 0xFFFFFFFF comes from? -- Kirill A. Shutemov