Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751787AbdCCDsF (ORCPT ); Thu, 2 Mar 2017 22:48:05 -0500 Received: from LGEAMRELO13.lge.com ([156.147.23.53]:59220 "EHLO lgeamrelo13.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751512AbdCCDsE (ORCPT ); Thu, 2 Mar 2017 22:48:04 -0500 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: minchan@kernel.org X-Original-SENDERIP: 165.244.249.25 X-Original-MAILFROM: minchan@kernel.org X-Original-SENDERIP: 10.177.223.161 X-Original-MAILFROM: minchan@kernel.org Date: Fri, 3 Mar 2017 12:03:00 +0900 From: Minchan Kim To: Anshuman Khandual CC: Andrew Morton , , , , Johannes Weiner , Michal Hocko Subject: Re: [RFC 02/11] mm: remove unncessary ret in page_referenced Message-ID: <20170303030300.GE3503@bbox> References: <1488436765-32350-1-git-send-email-minchan@kernel.org> <1488436765-32350-3-git-send-email-minchan@kernel.org> <2baf1168-0f84-b80d-5fb9-9d13c618c9f1@linux.vnet.ibm.com> MIME-Version: 1.0 In-Reply-To: <2baf1168-0f84-b80d-5fb9-9d13c618c9f1@linux.vnet.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-MIMETrack: Itemize by SMTP Server on LGEKRMHUB05/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2017/03/03 12:02:59, Serialize by Router on LGEKRMHUB05/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2017/03/03 12:02:59, Serialize complete at 2017/03/03 12:02:59 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1391 Lines: 46 On Thu, Mar 02, 2017 at 08:03:16PM +0530, Anshuman Khandual wrote: > On 03/02/2017 12:09 PM, Minchan Kim wrote: > > Anyone doesn't use ret variable. Remove it. > > > > This change is correct. But not sure how this is related to > try_to_unmap() clean up though. In this patchset, I made rmap_walk void function with upcoming patch so it's a preparation step for it. > > > > Signed-off-by: Minchan Kim > > --- > > mm/rmap.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/mm/rmap.c b/mm/rmap.c > > index bb45712..8076347 100644 > > --- a/mm/rmap.c > > +++ b/mm/rmap.c > > @@ -805,7 +805,6 @@ int page_referenced(struct page *page, > > struct mem_cgroup *memcg, > > unsigned long *vm_flags) > > { > > - int ret; > > int we_locked = 0; > > struct page_referenced_arg pra = { > > .mapcount = total_mapcount(page), > > @@ -839,7 +838,7 @@ int page_referenced(struct page *page, > > rwc.invalid_vma = invalid_page_referenced_vma; > > } > > > > - ret = rmap_walk(page, &rwc); > > + rmap_walk(page, &rwc); > > *vm_flags = pra.vm_flags; > > > > if (we_locked) > > > > -- > To unsubscribe, send a message with 'unsubscribe linux-mm' in > the body to majordomo@kvack.org. For more info on Linux MM, > see: http://www.linux-mm.org/ . > Don't email: email@kvack.org