From patchwork Tue Sep 15 10:46:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xu, Yanfei" X-Patchwork-Id: 11776051 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B1C7D618 for ; Tue, 15 Sep 2020 10:47:18 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 495A920B1F for ; Tue, 15 Sep 2020 10:47:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 495A920B1F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=windriver.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 266A06B009E; Tue, 15 Sep 2020 06:47:17 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2161D6B009F; Tue, 15 Sep 2020 06:47:17 -0400 (EDT) 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 12EE7900017; Tue, 15 Sep 2020 06:47:17 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0253.hostedemail.com [216.40.44.253]) by kanga.kvack.org (Postfix) with ESMTP id EF7C86B009E for ; Tue, 15 Sep 2020 06:47:16 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id B13D4349B for ; Tue, 15 Sep 2020 10:47:16 +0000 (UTC) X-FDA: 77264968872.19.brake62_210b7c827110 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin19.hostedemail.com (Postfix) with ESMTP id 878EC1AD1A3 for ; Tue, 15 Sep 2020 10:47:16 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,yanfei.xu@windriver.com,,RULES_HIT:30034:30054,0,RBL:192.103.53.11:@windriver.com:.lbl8.mailshell.net-64.10.201.10 62.18.0.100;04yf48ro3e8o651bu4y1qx14mfuhuoci1jaxbtk6scufht4m3k4m6wuq53xj5k1.c5zgbenabmdzhdjcokhzfztks5z4ncy7yrz4tuxncpgp4q6ontohgh7ejid4ajz.a-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: brake62_210b7c827110 X-Filterd-Recvd-Size: 1746 Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by imf05.hostedemail.com (Postfix) with ESMTP for ; Tue, 15 Sep 2020 10:47:15 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id 08FAkQvb029270 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 15 Sep 2020 03:46:47 -0700 Received: from pek-lpggp1.wrs.com (128.224.153.74) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.487.0; Tue, 15 Sep 2020 03:46:21 -0700 From: To: CC: , Subject: [PATCH] mm/page_alloc.c: variable type of 'progress' should be 'unsigned long' Date: Tue, 15 Sep 2020 18:46:20 +0800 Message-ID: <20200915104620.20582-1-yanfei.xu@windriver.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 X-Rspamd-Queue-Id: 878EC1AD1A3 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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: From: Yanfei Xu try_to_free_pages returns the number of pages reclaimed, and the type of returns is 'unsigned long'. So we should use a matched type for storing it. Signed-off-by: Yanfei Xu --- mm/page_alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index fab5e97dc9ca..5f1016c70b94 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4245,9 +4245,8 @@ static int __perform_reclaim(gfp_t gfp_mask, unsigned int order, const struct alloc_context *ac) { - int progress; unsigned int noreclaim_flag; - unsigned long pflags; + unsigned long pflags, progress; cond_resched();