Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp90463imu; Fri, 14 Dec 2018 15:05:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/U2BLodqLcCXgiHH3fg8RWD6h4q/P22iD7U3AoCkz2t7ElcYLa6ZnRDfhiVMnUjRmVJNXSw X-Received: by 2002:a17:902:f64:: with SMTP id 91mr4611212ply.132.1544828744905; Fri, 14 Dec 2018 15:05:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544828744; cv=none; d=google.com; s=arc-20160816; b=IIKsiEdVxEGd5gu6B3b/T2q1lwxaWS7yVFwZYZDg4/fsF8qX+og+0HKSMMxuuNWjsj l8mmBJvJ4OxlCRztHECB4GBJ4QScdiixG9KyFoG012zArFlCNcL5MU1gPJ91V+JsgMFA tTdxt8C0akRUumTeQpCuby+lBq5I26AyjRKftAYniUyyLPhAfzfUW23ZUuml6NgLJpSF rieUT27uxsj/9ba4xni7BRzUjVaKBnQ4nyKvz0DOLDjRjt5Db0Rtm+70lbvZG6nn9JIC LB/CK4yG7Qk/x8hPQwfxNjYoPkelQOguoDDOE0993d7wyF0LT+24W65dUZ6xEEbdJeWo dulQ== 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=O/ocCy4XM3f5RRpCxQDpjepYrV6d4WKm5yIjsPMqPpc=; b=A1zUMQebYzlc9vE/70Hf6NqkJV3T3fmmlmtaS0r9RWN+iahYULrOZiSSWXg1F1i5gR WTlHRFJ7Y+r6LE+EK88CF9LQMe/nWHeFlFfw3Fhs6nys76n1BFEJSKFwn0QKav+VNntR qb4OO1f6JeptpUMCBqfDlBfiZwXViHI4PtnPu+W/e5t9hGa1VmeD+ZHcOAw4lsLgd1ig vw7lxmfl14c9ifxeBA/DbrhHvAFNi60/C5jsfDfGLLXzwbHf0qKiuEedWIoiHbDt+QOP kGp8fKuqKu5h3dGa68XP/FbkMvivsYcXC0N+s+jaNCH788RkxbYzKL6O/77bxLaMmTvj rWMw== 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 g31si5013942pld.358.2018.12.14.15.05.29; Fri, 14 Dec 2018 15:05:44 -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 S1730579AbeLNXDN (ORCPT + 99 others); Fri, 14 Dec 2018 18:03:13 -0500 Received: from outbound-smtp10.blacknight.com ([46.22.139.15]:39790 "EHLO outbound-smtp10.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728887AbeLNXDN (ORCPT ); Fri, 14 Dec 2018 18:03:13 -0500 Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp10.blacknight.com (Postfix) with ESMTPS id 269041C2066 for ; Fri, 14 Dec 2018 23:03:11 +0000 (GMT) Received: (qmail 31163 invoked from network); 14 Dec 2018 23:03:11 -0000 Received: from unknown (HELO stampy.163woodhaven.lan) (mgorman@techsingularity.net@[37.228.245.71]) by 81.17.254.9 with ESMTPA; 14 Dec 2018 23:03:10 -0000 From: Mel Gorman To: Linux-MM Cc: David Rientjes , Andrea Arcangeli , Linus Torvalds , Michal Hocko , ying.huang@intel.com, kirill@shutemov.name, Andrew Morton , Linux List Kernel Mailing , Mel Gorman Subject: [PATCH 01/14] mm, compaction: Shrink compact_control Date: Fri, 14 Dec 2018 23:02:57 +0000 Message-Id: <20181214230310.572-2-mgorman@techsingularity.net> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20181214230310.572-1-mgorman@techsingularity.net> References: <20181214230310.572-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 --- 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