Received: by 10.223.185.116 with SMTP id b49csp1042886wrg; Wed, 21 Feb 2018 11:05:10 -0800 (PST) X-Google-Smtp-Source: AH8x224TokVv0r1uSYe45zW+UsR8GeXphSl5aiKYmLpsGAM9QuuF2azbJhEpDZ9iknGQSM7ma5lq X-Received: by 10.99.101.69 with SMTP id z66mr3520008pgb.347.1519239910656; Wed, 21 Feb 2018 11:05:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519239910; cv=none; d=google.com; s=arc-20160816; b=Z0HznGDlDe3oPyMf+ZGpKKHZBFSs6ldvsG0VcK5ZTnJiUj3vQYTrR7hMj6mhfp0av6 yX/KzwIoG16T41fjQNrPqTth6ndSm1kP5X9yg7oh6AEnnWLEn9bMsMiGvu25aCZ7qvz+ Hx0o1D/Qqr53iffqI7YcrJND+2GHKYwZM7df5ZdnbazL2/+41f7qZCS9iHE2Mvsc65iH 2F6uUVO+qXPyhf3DWzfaNLWNdFCiTiXw733gLVt6Sqb7ccwsbyXmZxQaRTWXdm9PEypJ djDvlMYdEgihlaoMZw0Vm9PiJtLfMeueavzVGd3jTYswhMBKs+6Mrww0SVHt/QZx5KyW DtDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=sB+yMvz9Uo4lMppdcAWaPbo8ZKSGDkg0HNC+IjNCSwA=; b=S2HlKJh2jvkA4sUXaxIBAcvbkGHDWe5XBGq80Cq1nBbdt3l0EqdbrVn+eh30Oiqtaq AVSCpy8Xu57VXcFW5dMURskGvfCpigqmFYdY0kmY2DTcYe4uyB/tWaI/KsyY2GINuVxd OcWXSkNc8tPac8BuYkIOqqruUpNliwdb3ws5EN9bDwsPqdcAi7/0UnN2nO8VO5KufJXl 6sbicusefEV4hiW1g5tExQ5AEAxUZ9jMj7acYlr2UHfgJmN6sz/91J39b6XHjlbbdMcn KaGok5ZzcV6mw4mtsddFDJeHloVE3sgduku2tLDXlx9g2hY2FmFUMUM/7rFfZCnSNIEc Kn7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=BtTBcpSW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 14si15515184pfi.158.2018.02.21.11.04.56; Wed, 21 Feb 2018 11:05:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=BtTBcpSW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937772AbeBUQuN (ORCPT + 99 others); Wed, 21 Feb 2018 11:50:13 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:42534 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932778AbeBUQuK (ORCPT ); Wed, 21 Feb 2018 11:50:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=sB+yMvz9Uo4lMppdcAWaPbo8ZKSGDkg0HNC+IjNCSwA=; b=BtTBcpSWHGZG6J/ZsFC7dFqFr ZYdZdsHQrPhFYjfng7Ff9ZmLnGXq1Vqa2BSi/mpSGs5VKDQ5ED5EHRSbIOTAhaEr/jSid5eYOsi0c 4+vBhtBQPTsWBExqmM/r7p1gKrBAuOnr7sHDtZ3Lq78kuO8Bx9MSX381TDYYSTrm10Ygdte6I2T7V K0cV3ftKfKeHIkiF0lRqOPn9mEn+/cMaY4ywYpWU6Vc7hAFL5vKCu9bWWdcSygihJp09kKIkz0O/6 U5diKPCdrnOhYz1UTE+zGEr5zI/pWraqmDcR4g9HwNH6UgxaD6s8yroloBFqSYitNmuUHzaN++HYV VbR1gmtrw==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1eoXap-0007cJ-6b; Wed, 21 Feb 2018 16:50:07 +0000 Date: Wed, 21 Feb 2018 08:50:06 -0800 From: Matthew Wilcox To: Andy Lutomirski Cc: Konstantin Khlebnikov , Dave Hansen , LKML , Christoph Hellwig , Linux-MM , Andrew Morton , "Kirill A. Shutemov" Subject: Re: Use higher-order pages in vmalloc Message-ID: <20180221165006.GA27687@bombadil.infradead.org> References: <151670492223.658225.4605377710524021456.stgit@buzz> <151670493255.658225.2881484505285363395.stgit@buzz> <20180221154214.GA4167@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 04:11:16PM +0000, Andy Lutomirski wrote: > On Wed, Feb 21, 2018 at 3:42 PM, Matthew Wilcox wrote: > > +++ b/kernel/fork.c > > @@ -319,12 +319,12 @@ static void account_kernel_stack(struct task_struct *tsk, int account) > > if (vm) { > > int i; > > > > - BUG_ON(vm->nr_pages != THREAD_SIZE / PAGE_SIZE); ... > > + if (j) { > > + area->nr_pages -= (1UL << j) - 1; > > Is there any code that expects area->nr_pages to be the size of the > area in pages? I don't know of any such code. I found one and deleted it ;-)