Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11199546ybi; Thu, 25 Jul 2019 11:45:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaUCJKxJY74kAdz5Wm3PGWaxCCx+cL0iLhsEUFdRKnOFDrhWFYP8gmJ76V59WZLyuQKu8V X-Received: by 2002:a63:e14d:: with SMTP id h13mr87681423pgk.431.1564080307138; Thu, 25 Jul 2019 11:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564080307; cv=none; d=google.com; s=arc-20160816; b=cNHt/6yuTWyFhGsgtpwaedks8dDiuOgbdMssBL9L0EumR5g5r6/hqDAdVUfSNayMi5 ZQF5/H860r6EFplBRANHGCdEtQd2CoIzJTDrSa4wDFJoF2R0qeVWYgR4RqN36YzUlD7K NL1iU0Gwv6FZvCIEPLUHLLRYyky8nW4kmvf+XVp0fTp+6xFXnJezIR/2FodTePxCaOQT 2N3+YHTtPG1HPWA5dK1afFhI7brQTwtviz0g+qM5UlqXBZwZAQtu4gvnZO+L0uhMiBlG iVdyqHg9quRbyQB5jXs/e419udMkj35QKS4Ax41+AxnLHA465DcRnhTVU5U87ZqEA/Km OJXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AtweZa/Z6F63u6BGDtxfZL6SRwzo4lD4iM0Os9b2INA=; b=KfOXap+1/BtIfntWWYzY/vTYMOWT8AaaaH8YXmyJ5l6Vp3P1/jQin13q3XhfO6Xnd0 WyR6MhwNvaY9qyDMUuKeSeTqZQkme2t7XZDOa14lSPXyZEYn35zhcxVUgee+yU97WnIu csQf0WZUDSA0FalxKXmTC5qs3lBCVdAPcGOPu3azbCCTM4w7AfbwXt7cx5OS3RuBXcqS kt1PXiOXaeWLcUIhL9uBu5ukJEuFIpNQVUbH33IOI9ndbaBaRZ+iagi4Yg9cBwf1DxWi adN8QUpMkC8OBx+HP2oSra8BCH7LTaUaP1N9356qEXOvYHl+ATgetyCwoLYHhJTvjKdn wCKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ebzZdKnq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cx20si14841601pjb.97.2019.07.25.11.44.52; Thu, 25 Jul 2019 11:45:07 -0700 (PDT) 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=pass header.i=@gmail.com header.s=20161025 header.b=ebzZdKnq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726364AbfGYSn4 (ORCPT + 99 others); Thu, 25 Jul 2019 14:43:56 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34444 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbfGYSn4 (ORCPT ); Thu, 25 Jul 2019 14:43:56 -0400 Received: by mail-pl1-f195.google.com with SMTP id i2so23762797plt.1 for ; Thu, 25 Jul 2019 11:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AtweZa/Z6F63u6BGDtxfZL6SRwzo4lD4iM0Os9b2INA=; b=ebzZdKnqccWwtZwsMRzf5dLs66cvT47cvTOupG9sQ1axgMouSlzYHllw4szdTYKBLZ g1ZdTZFw13XszJ8qE73aGeFFYM9pYIQp0NuxgO9EsQRc3FzxGTfLaEsE4okN2DEJ/qPp EkDOEF4pFgN3/5zsqMjEbEEPGEC0m2PX8a34iW8qlMgG7H6agaEA6RhAZCNH6g1bykps spfRDwLfZ+HmDgav54rp1H6iQtsTLsasHxY8gAzelL0nEZVqJKai88jeAcPoipuzNpSX RkKnjcl/A8ILOT+tgjQRkDU3dMJP35QLW0U6+NNwyOEHJZIyo9bIhlH2buli4LdQrTMI 9IXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AtweZa/Z6F63u6BGDtxfZL6SRwzo4lD4iM0Os9b2INA=; b=eoF7bc/uHKqPxB+ZRwf36nU6vbShC65pTot3b2rVXvdrg51nkW3nmobbxWjpUzCx5J +WVgRd1tbcNDn5red3EAfITWvCdQbsaiohF276wWmNg3MF33S5f8jasb9AgPcWy+1x0s U/jj0yFR8c39ZPnxUIHAdnkEYGV+sXV8twVeKu8s3upS6K8jkTuj69vqqe9Wrw4cUfs/ nXLRRXN5BFFxYZci8M3om1bmhJgXARfO7KL+q5/0P5cQ4E1jdEb3oHR4biw4T6Wobtx4 3oD/XThXndqb2JZjgslQ+mCBeVH6mzoBhfPZuamT98aO0AEwr0P9ayHKzbed1iM473dy QsNA== X-Gm-Message-State: APjAAAVWf3LGRGwDl02BWSGQG5I/jcBw9TbdIYuMQLiC3IvhPZY6v+oQ 4F0WoWt0J0Yp3IKTSaeoEaU= X-Received: by 2002:a17:902:8a87:: with SMTP id p7mr91805919plo.124.1564080235858; Thu, 25 Jul 2019 11:43:55 -0700 (PDT) Received: from localhost.localdomain.localdomain ([2408:823c:c11:624:b8c3:8577:bf2f:3]) by smtp.gmail.com with ESMTPSA id w3sm43818257pgl.31.2019.07.25.11.43.47 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 25 Jul 2019 11:43:55 -0700 (PDT) From: Pengfei Li To: akpm@linux-foundation.org Cc: mgorman@techsingularity.net, mhocko@suse.com, vbabka@suse.cz, cai@lca.pw, aryabinin@virtuozzo.com, osalvador@suse.de, rostedt@goodmis.org, mingo@redhat.com, pavel.tatashin@microsoft.com, rppt@linux.ibm.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Pengfei Li Subject: [PATCH 03/10] mm/page_alloc: use unsigned int for "order" in should_compact_retry() Date: Fri, 26 Jul 2019 02:42:46 +0800 Message-Id: <20190725184253.21160-4-lpf.vector@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190725184253.21160-1-lpf.vector@gmail.com> References: <20190725184253.21160-1-lpf.vector@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Because "order" will never be negative in should_compact_retry(), so just make "order" unsigned int. Signed-off-by: Pengfei Li --- mm/page_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 1432cbcd87cd..7d47af09461f 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -839,7 +839,7 @@ static inline struct capture_control *task_capc(struct zone *zone) static inline bool compaction_capture(struct capture_control *capc, struct page *page, - int order, int migratetype) + unsigned int order, int migratetype) { if (!capc || order != capc->cc->order) return false; @@ -870,7 +870,7 @@ static inline struct capture_control *task_capc(struct zone *zone) static inline bool compaction_capture(struct capture_control *capc, struct page *page, - int order, int migratetype) + unsigned int order, int migratetype) { return false; } -- 2.21.0