Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp548906ybz; Wed, 29 Apr 2020 05:11:51 -0700 (PDT) X-Google-Smtp-Source: APiQypKCPV0V+lC5Wrllk9OHZn7vTafGdW8Z3yO1Vp90Tq5xnvqQXKvGyHf59rjH2SeXIq6zxdlH X-Received: by 2002:a05:6402:887:: with SMTP id e7mr2234104edy.178.1588162310971; Wed, 29 Apr 2020 05:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588162310; cv=none; d=google.com; s=arc-20160816; b=t32uHJvbNWfJxAySkT0zKTyUI65wZiqDsI1xJX+jv9p7kUdgNBDuR2l5FL5eSa52bL 48Y0CE2UV+GvtgiuK+MzfnjZ2SEs/vc+cpyWWSfruae0S/NpuVJUNJxJBeZ2WWlt0k2o orelifi8lEYAhr/lfj4UXZp9jJPCoymcDXbwgDGEuDagV79BKME4iFCe+lb1PJNnO/rc 1lf/pjD5gX5r5uNJSLchMKBYL/v/m5ELXN668LP3Q4Zxb7X0UVF7zInd9twg6wz7hZ7y VdtvFn50LE6E6RtZ+NqYRnhg6lTkDdJKS8AZFHfynmxUT6ByOwHhyve/NoFyGxzSUv0n U4Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=0KFJsuweAsy2po8J04xM3JEaLOIdNb8hu1GHvhSVb/U=; b=AIN1c3SHPMB4R1xsLDzaMhUmnSzwkv1R8ZkAyDVkSGu9GkIihu0/pDyUOsdKk6AhMO faV9QSBon99TDvmLYBKCnJkZQkAf3xXwIHfHM2lOcZO4+30xjMyg/t/TpoY27n6XtMdU uOL5mG/qaw6aUQ5hh3Fb6Xd0aBnoRR2h1iLZe5+fFgrG8rlgnlpgnsnggtb8Ge4vNepp Stg1ApBDhpIsRc4nBYFSrtiLUjCugsiZgEGU5ddchaA2z6AgaIHG5aJJjrsPWuUz2O3H vSIGXoiyff+6qsIHXMhB9DSp2+PXMra3Ol0xGcjxA5OPgR64cupizqyI678NJVJ0dezX Aa8A== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e25si4088680ejl.159.2020.04.29.05.11.27; Wed, 29 Apr 2020 05:11:50 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726822AbgD2MJ4 (ORCPT + 99 others); Wed, 29 Apr 2020 08:09:56 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:56082 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726743AbgD2MJz (ORCPT ); Wed, 29 Apr 2020 08:09:55 -0400 Received: by mail-wm1-f67.google.com with SMTP id e26so1744629wmk.5 for ; Wed, 29 Apr 2020 05:09:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0KFJsuweAsy2po8J04xM3JEaLOIdNb8hu1GHvhSVb/U=; b=az7eWWmfWb2qqJdEIlfnNGIc9I09x00rYN90fY4twD1NObfJTZDyCl2JEceqfzEhet wCQBHXxiX5D0mVqFz5TrGTH/Vfq/umFlJ22Y63k5PpHE92nw9qEoak5C1upyFMvllhvi XJNzVn6AV3z3n2LSt+0bUuLHlQkNbkK2nq8Fs2bdXeEcTzdb+/JBbkTgN0c0NRUGmCL/ QOF7hRrjS3UGZIVRo0hoi0RAxV+R7KmEk4sU2Fsa8yEWfRO1ww+vJEYV74S/yzyptVbh cu1p5xyx8JUMxb0pDcA6jA5LL0O2/5XtRAVrivfdPW5KHW2UVGN6H6EwW3+WceHRBSSm 32rA== X-Gm-Message-State: AGi0Puay/1sveXlBo143hucGH7kgJLLF8gboK0B+4TOhDdYyb6TfFDvH ZehcR1hZ1vlhz7IzEiY4U4s= X-Received: by 2002:a7b:c4d1:: with SMTP id g17mr2920096wmk.158.1588162193667; Wed, 29 Apr 2020 05:09:53 -0700 (PDT) Received: from localhost (ip-37-188-130-62.eurotel.cz. [37.188.130.62]) by smtp.gmail.com with ESMTPSA id h6sm7373995wmf.31.2020.04.29.05.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2020 05:09:52 -0700 (PDT) Date: Wed, 29 Apr 2020 14:09:51 +0200 From: Michal Hocko To: Maninder Singh Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, a.sahrawat@samsung.com, v.narang@samsung.com Subject: Re: [PATCH 1/1] mm/vmscan.c: change prototype for shrink_page_list Message-ID: <20200429120951.GC28637@dhcp22.suse.cz> References: <1588139967-19012-1-git-send-email-maninder1.s@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <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 On Wed 29-04-20 11:29:27, Maninder Singh wrote: > 'commit 3c710c1ad11b ("mm, vmscan: > extract shrink_page_list reclaim counters into a struct")' > > changed data type for the function, > so changing return type for funciton and its caller. > > Signed-off-by: Vaneet Narang > Signed-off-by: Maninder Singh Acked-by: Michal Hocko Is there any reason to move declarations here? > -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))) { > @@ -2096,7 +2096,7 @@ static void shrink_active_list(unsigned long nr_to_scan, > unsigned long reclaim_pages(struct list_head *page_list) > { > int nid = NUMA_NO_NODE; > - unsigned long nr_reclaimed = 0; > + unsigned int nr_reclaimed = 0; > LIST_HEAD(node_page_list); > struct reclaim_stat dummy_stat; > struct page *page; > -- > 1.9.1 -- Michal Hocko SUSE Labs