From patchwork Fri Dec 14 23:02:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mel Gorman X-Patchwork-Id: 10731775 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 067541399 for ; Fri, 14 Dec 2018 23:03:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD5772D639 for ; Fri, 14 Dec 2018 23:03:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A1A3F2D63D; Fri, 14 Dec 2018 23:03:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0BB162D639 for ; Fri, 14 Dec 2018 23:03:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DDCB88E0219; Fri, 14 Dec 2018 18:03:13 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D45B68E021A; Fri, 14 Dec 2018 18:03:13 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8FCCF8E0219; Fri, 14 Dec 2018 18:03:13 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by kanga.kvack.org (Postfix) with ESMTP id 2752D8E0217 for ; Fri, 14 Dec 2018 18:03:13 -0500 (EST) Received: by mail-ed1-f69.google.com with SMTP id d41so3361101eda.12 for ; Fri, 14 Dec 2018 15:03:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=O/ocCy4XM3f5RRpCxQDpjepYrV6d4WKm5yIjsPMqPpc=; b=eSi+VKaN9W3WNPBxw8bGL095Z1q3WzJ8oAS22IqripkmpeQKPhffPK83vzT1DwO9SM U3djGlcPYMI0ek3l8U50Mp2uBo1ZYtZOo+4mLcUskCthpcDCSZiLG2PPbGT6Cap5MXIN kokoGYX1F7rBvWp7qbOX42kflS7NILrd0k28fBgO9+jHKptOEsHS3UUHb2RGuUXi3Wb/ zijnqp0x6U2HjLP7LZfaFojFe9radlcCquIc3nUopMFW9G/LQAB4auakaeQB3f0VYcQL UqkHm0eJqiU1XncsPYwrPkUQCbpJ7O9h6ogI0bUdP3FInNf5m+gxB2M7H3XGFv8NIiQ/ WB4Q== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of mgorman@techsingularity.net designates 46.22.139.230 as permitted sender) smtp.mailfrom=mgorman@techsingularity.net X-Gm-Message-State: AA+aEWbnz2gqg2+g6RvM7iCSnAQKu19mxDC+jSvXirmgbP161ogN4fxM vNnhh1QFJsLMuPuvuDbOcyEq5ZUXzgFFoyPTExEeoBOS4Y0mpOeToB2X8nuEhhtPjlB0X7kx6R3 AGhPacEH91PC6euOR475EkriGU2CxqGFRp7LfGuV3jgj3Yec9RMVqul/QmrtWP3GdpA== X-Received: by 2002:a17:906:3548:: with SMTP id s8-v6mr3533330eja.161.1544828592657; Fri, 14 Dec 2018 15:03:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xk8gIRDAKloMUK/qzkfBoPUzZgPPTabr1AcdLlZYKHEulMslNaZ+t6WbjJXcGpi67PJz/u X-Received: by 2002:a17:906:3548:: with SMTP id s8-v6mr3533307eja.161.1544828591609; Fri, 14 Dec 2018 15:03:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544828591; cv=none; d=google.com; s=arc-20160816; b=adMAPX7Gq1V808KqzTL0TZWAgJTKhUpE2Updw5GAnbaDIRS6xn5iHO+TFSE41RQO/+ 6MvgXcAxQUBtcB3pvXDksbkdQzBWC8fIWhW/Z+T2S2CNroiUaNS+6VU1ZG2E52OAVRjL eAbalU4Sxum+erK6rCZLNWePgNSg9nuRwoPEBKKroh7NkMyNFgKJyhNft1tS7gs7Y8wN cDwbl5p+Ct104cwWC81o7gjiiyvFYsaD40GoyTg8ihtr29zDZrYrVKOsTexnmKr69Rgn s1tLHI/hz3YXjBXVc0ZjzCTkddhl0nnFetaUGXhVCJ8lmuQ+u8SlxlBzfcoS7ByqClpQ 9SAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=O/ocCy4XM3f5RRpCxQDpjepYrV6d4WKm5yIjsPMqPpc=; b=0l8RU9+jmEMm1gXW4+Y1S09o/PlK70+oCLFchWRhY3ZHn0ddPIYBfO5KoZp2+KaGo9 pqaxYhzsZwvN2FisfAkhBadL7WprLyd1XZGx1ESWsF+9YJBwvNOv7p3ikPoDKJqBoh64 ieDkWkJQSlKaegZ6jOwwfBTZ+BPL8TCv6S+Or3PYOsEM+hJwRhniomQQg21SU7RrEHAv E+fV/dxNj8mciD/GehiGDGU6jmhd9eNmtxVJ1ITsh+qI87On4kL8UcTfdZ9aqNO3GmtI MOSHYVHd6EoT7sEkTV1TYfp+HwNI7dT/vYA5cyVD/d+U40bVFBbzmDt/o54qTSgC3QEN YMnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of mgorman@techsingularity.net designates 46.22.139.230 as permitted sender) smtp.mailfrom=mgorman@techsingularity.net Received: from outbound-smtp13.blacknight.com (outbound-smtp13.blacknight.com. [46.22.139.230]) by mx.google.com with ESMTPS id w44si1092158edb.74.2018.12.14.15.03.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Dec 2018 15:03:11 -0800 (PST) Received-SPF: pass (google.com: domain of mgorman@techsingularity.net designates 46.22.139.230 as permitted sender) client-ip=46.22.139.230; Authentication-Results: mx.google.com; spf=pass (google.com: domain of mgorman@techsingularity.net designates 46.22.139.230 as permitted sender) smtp.mailfrom=mgorman@techsingularity.net Received: from mail.blacknight.com (unknown [81.17.254.10]) by outbound-smtp13.blacknight.com (Postfix) with ESMTPS id 1C37B1C1FBE 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> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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 */