Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp592337ybz; Wed, 29 Apr 2020 06:02:36 -0700 (PDT) X-Google-Smtp-Source: APiQypJOmwn0QRmrqbEoZRJecUvJgySIdUSCOCgAtH+wEmlMDkfZWJDNKvGmbNBYr+k4hBJ4j+Sv X-Received: by 2002:a50:a0c7:: with SMTP id 65mr2349867edo.7.1588165355963; Wed, 29 Apr 2020 06:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588165355; cv=none; d=google.com; s=arc-20160816; b=bZxvJN6PaB9z8yBV1D6so2aHDxj43ev+ZB9nSpNVtTcoHX2aL0+8aEMm2zMOq2eM/b YbGv8oNHeIJnT60LVydgJ5Y/liben5OV36Uiz0woGDHtbOg0KbABPyjxyYiHZDvXZqWG HZfdP9AA7007t2dGJNwECTalvDAY5KoxfXEmzIJq4sYOvFpziEBecZfxg2+erPuC2kiK fXnf2VcZLfeZRhcGhNemckP3qgTnY26wbIiVn/8Nfd1QSrpjwxQH4Uy6nn7teACnvsAl 6OQr3hvBas1CpDXXGcwITxZ1+S4qBovzO35Ms4kPa3UP4FEovJbDLj9G5l9jCQSBeSLY 6X5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:date:message-id:in-reply-to:cc:to:from :reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=oi1Cvuzj0cj5gw/9YGJe2ynMN3rlmpPU0C4n3b7LBF0=; b=JKDbLFhFWihoUq/gVOR+Qa//gC4XI55huIZEnkBeCxAhqYi2PklJ4crZbNK1M8WAUw MciQM1SNxU+ukQFoH67jw3fUOEx+3/pFyNurfutkqXb2oLzgr1tubkIXRItelLT4uLUJ 3XeHQ3CDf+DfmheKz1fUKHxgXkaehs9rvZ/dQ9scswU6PBRHaab4nVyvPW8QV7NI+oCD nRzH5bqa6njsl/GsI58MEPWBCpMsdzwUXsS9YApRzIq300fpHqsfY5dVQcFNZKzvFbK0 P2q2TlTwuihT2npoggH3frl4JjQ56y4HB6i8QpHIxRqRiqUZcVs5lL5G/EAwrEYI8RML i8jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=YqOeiTix; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p1si3764317ejw.313.2020.04.29.06.02.06; Wed, 29 Apr 2020 06:02:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=YqOeiTix; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726654AbgD2NAh (ORCPT + 99 others); Wed, 29 Apr 2020 09:00:37 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:49164 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726516AbgD2NAg (ORCPT ); Wed, 29 Apr 2020 09:00:36 -0400 Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200429130033epoutp0364687b0accbd8e61751fc4cdce717edd~KS92CF75p3180431804epoutp03a for ; Wed, 29 Apr 2020 13:00:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200429130033epoutp0364687b0accbd8e61751fc4cdce717edd~KS92CF75p3180431804epoutp03a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1588165233; bh=oi1Cvuzj0cj5gw/9YGJe2ynMN3rlmpPU0C4n3b7LBF0=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=YqOeiTixE0GP0i8Y87Ej0N+dMqv9JJCsHbjevwa+LFmlvXX0mrP2zvKwdHAQ331BJ CoiW2ItWAHvj6pi9do0MS2DZ3HZ79ZzfZVqL80N7hvaIWAySchtFG71b9syflBZIko bNfMRBjpph6eI1/6dFiuBV66oRMKtmrEdEDjKaVg= Received: from epsmges5p3new.samsung.com (unknown [182.195.42.75]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20200429130032epcas5p19ba953fffc07fdd39b2efc61d915833d~KS91kUEv40053500535epcas5p1U; Wed, 29 Apr 2020 13:00:32 +0000 (GMT) X-AuditID: b6c32a4b-acbff70000001280-e8-5ea97a7025e7 Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 43.B7.04736.07A79AE5; Wed, 29 Apr 2020 22:00:32 +0900 (KST) Mime-Version: 1.0 Subject: RE:[PATCH 1/1] mm/vmscan.c: change prototype for shrink_page_list Reply-To: maninder1.s@samsung.com From: Maninder Singh To: Michal Hocko CC: "akpm@linux-foundation.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , AMIT SAHRAWAT , Vaneet Narang X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <20200429120951.GC28637@dhcp22.suse.cz> X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20200429125323epcms5p67a539511c573cd598d78b726503e3204@epcms5p6> Date: Wed, 29 Apr 2020 18:23:23 +0530 X-CMS-MailID: 20200429125323epcms5p67a539511c573cd598d78b726503e3204 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKKsWRmVeSWpSXmKPExsWy7bCmpm5B1co4g4knDSwu7k61mLN+DZvF 5V1z2CzurfnPavH62zJmi0Mn5zI6sHlsWtUJJD5NYvc4MeM3i0ffllWMHp83yQWwRnHZpKTm ZJalFunbJXBlTF28lrmglavi15dF7A2MX9i7GDk4JARMJGbvru9i5OIQEtjNKPGv7TMbSJxX QFDi7w7hLkZODmEBL4mmM5eZQGwhAUWJCzPWMIKUCAsYSPzaqgESZhPQk1i1aw8LiC0ioCKx vu8OO8hIZoGfjBJfJ25kBklICPBKzGh/ygJhS0tsX76VEcTmBDqhec5DJoi4qMTN1W/ZYez3 x+YzQtgiEq33zkLNEZR48HM3VFxGYvXmXqiZzYwSnUtSQRZLCExhlNj9qosNImEusXvDPLAi XgFfib1tB8CaWQRUJfZvfQjV7CLRvuIrK4jNLCAvsf3tHGaQJ5kFNCXW79KHKJGVmHpqHRNE CZ9E7+8nTDB/7ZgHY6tKtNzcwArz4+ePH1kgwewhcWsqMySYdzJK3P52mX0Co8IsREjPQrJ4 FsLiBYzMqxglUwuKc9NTi00LjPNSy/WKE3OLS/PS9ZLzczcxghOLlvcOxk3nfA4xCnAwKvHw WqSujBNiTSwrrsw9xCjBwawkwvsoY1mcEG9KYmVValF+fFFpTmrxIUZpDhYlcV4tRqBqgfTE ktTs1NSC1CKYLBMHp1QDY/ynRUa+Ya94si22FsYaX5QMfPxypnGU3eKmvxHxJXd3TC6L/vO8 mP+ZDpd9UZlUcuRZzsOCDRJLc7LrZsxdO9v09UuWugQrHoPz4bdOHpx0acrWpiXRRVInlBpd owxfPlx29wBfwA4mjwthP6MSfBV3B0fnBV/7V1m8SeffvBdn783a9Ib7hBJLcUaioRZzUXEi AG6uT/4oAwAA X-CMS-RootMailID: 20200429055946epcas5p2d5faf2b320913d59a4a8380cb017053c References: <20200429120951.GC28637@dhcp22.suse.cz> <1588139967-19012-1-git-send-email-maninder1.s@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > >Acked-by: Michal Hocko > >Is there any reason to move declarations here? > "unsigned int ret" was changed mistakenely, sending V2. and "unsigned int nr_reclaimed" is changed to remove hole. >> -unsigned long reclaim_clean_pages_from_list(struct zone *zone, >> +unsigned int reclaim_clean_pages_from_list(struct zone *zone, >> struct list_head *page_list) >> { >> + unsigned int ret; >> struct scan_control sc = { >> .gfp_mask = GFP_KERNEL, >> .priority = DEF_PRIORITY, >> .may_unmap = 1, >> }; >> struct reclaim_stat dummy_stat; >> - unsigned long ret; >> struct page *page, *next; >> LIST_HEAD(clean_pages); >> >> @@ -1900,13 +1900,13 @@ static int current_may_throttle(void) >> { >> LIST_HEAD(page_list); >> unsigned long nr_scanned; >> - unsigned long nr_reclaimed = 0; >> unsigned long nr_taken; >> struct reclaim_stat stat; >> int file = is_file_lru(lru); >> enum vm_event_item item; >> struct pglist_data *pgdat = lruvec_pgdat(lruvec); >> struct zone_reclaim_stat *reclaim_stat = &lruvec->reclaim_stat; >> + unsigned int nr_reclaimed = 0; >> bool stalled = false; >> >> while (unlikely(too_many_isolated(pgdat, file, sc))) { Thanks, Maninder Singh