Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3411060imu; Fri, 18 Jan 2019 09:54:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN5K3iN3V82GvIfflvSsblL2B0faKzrUyTbsEAzPpYahR7etmWsf93UbBK1WfwA6i+6HvgfD X-Received: by 2002:aa7:81d0:: with SMTP id c16mr20123057pfn.153.1547834051502; Fri, 18 Jan 2019 09:54:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547834051; cv=none; d=google.com; s=arc-20160816; b=aD7HwWSlUK/aV4TGwHuX7iLZaYSWu4YY3573lIkIZpC4vzwrcEAPOf86Tjc00CzNvd 5zBu3BXoyVypj25bqeXQGHSDzVJUZgKY8eCMpMsKPAXJHsBAGO9/ab7MRuCAN2aF7k0Y TJ84/zStnmspf7OulgCnNCmiTr70zLHFRd2Km/Wc7r78xvkfO+SJY9cw6EIqWk4x7CG3 w3GMyAZRL7ia+30xzulguj7o/x2xQdx4Sbc40DWvcI5RI7GO9FZ7lqwdO2nREL9DWHYS xUhWsQh+vBtFhU2qjFaDS0dZIwD71yE1EPQkarUgYb44gOCgtV517HIp2KtTYx3mLd8p /YOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=8mTqu6XmTXueq68p+xTpjDNtIf6Fpr2hYaUsjecSpjE=; b=q8ohB66C/zsj/KzWZm7mMYUByRyrBZSzO6NH6/8tb153JGtLc8oA6URf/nniqqtrrE 5YGC9E8wCBo8XKt1bnZpmSY3TawVkDmyCH8tCbxLlwTaSrDhfai6OjxXr5fAEdR6gKDy /rbUyu5iH5PPJKffamskffKQmPoSclbRahNegV2R9g6Pamtmparg1iI/efYtEG4KGr8o GToe6QSjECisK2mf1PGahdLBUMruGUmd12ZAhaQ3AtBuD+jaA6vxXyycP4qVjsT6QiCG JUFk8+DoMtYZyH5iG7G6SHMM+YFOIOvPDh8iHGdy7gvIjijRIS5cCxvroVH9XoeThtGD BULQ== ARC-Authentication-Results: i=1; mx.google.com; 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 c65si5237020pfe.202.2019.01.18.09.53.55; Fri, 18 Jan 2019 09:54:11 -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; 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 S1728633AbfARRv7 (ORCPT + 99 others); Fri, 18 Jan 2019 12:51:59 -0500 Received: from outbound-smtp10.blacknight.com ([46.22.139.15]:45799 "EHLO outbound-smtp10.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727940AbfARRv7 (ORCPT ); Fri, 18 Jan 2019 12:51:59 -0500 Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp10.blacknight.com (Postfix) with ESMTPS id 593D61C35A3 for ; Fri, 18 Jan 2019 17:51:57 +0000 (GMT) Received: (qmail 30679 invoked from network); 18 Jan 2019 17:51:57 -0000 Received: from unknown (HELO stampy.163woodhaven.lan) (mgorman@techsingularity.net@[37.228.229.96]) by 81.17.254.9 with ESMTPA; 18 Jan 2019 17:51:57 -0000 From: Mel Gorman To: Andrew Morton Cc: David Rientjes , Andrea Arcangeli , Vlastimil Babka , Linux List Kernel Mailing , Linux-MM , Mel Gorman Subject: [PATCH 01/22] mm, compaction: Shrink compact_control Date: Fri, 18 Jan 2019 17:51:15 +0000 Message-Id: <20190118175136.31341-2-mgorman@techsingularity.net> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190118175136.31341-1-mgorman@techsingularity.net> References: <20190118175136.31341-1-mgorman@techsingularity.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The isolate and migrate scanners should never isolate more than a pageblock of pages so unsigned int is sufficient saving 8 bytes on a 64-bit build. Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka --- mm/internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index 536bc2a839b9..5564841fce36 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -185,8 +185,8 @@ struct compact_control { struct list_head freepages; /* List of free pages to migrate to */ struct list_head migratepages; /* List of pages being migrated */ struct zone *zone; - unsigned long nr_freepages; /* Number of isolated free pages */ - unsigned long nr_migratepages; /* Number of pages to migrate */ + unsigned int nr_freepages; /* Number of isolated free pages */ + unsigned int nr_migratepages; /* Number of pages to migrate */ unsigned long total_migrate_scanned; unsigned long total_free_scanned; unsigned long free_pfn; /* isolate_freepages search base */ -- 2.16.4