From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f72.google.com (mail-wm0-f72.google.com [74.125.82.72]) by kanga.kvack.org (Postfix) with ESMTP id 597886B0005 for ; Thu, 14 Jul 2016 08:48:44 -0400 (EDT) Received: by mail-wm0-f72.google.com with SMTP id r190so55660708wmr.0 for ; Thu, 14 Jul 2016 05:48:44 -0700 (PDT) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id 136si33449610wmg.137.2016.07.14.05.48.43 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 14 Jul 2016 05:48:43 -0700 (PDT) Subject: Re: [PATCH 26/34] mm, vmscan: avoid passing in remaining unnecessarily to prepare_kswapd_sleep References: <1467970510-21195-1-git-send-email-mgorman@techsingularity.net> <1467970510-21195-27-git-send-email-mgorman@techsingularity.net> From: Vlastimil Babka Message-ID: <542815e6-f158-44e7-cf23-c6b5b20acee2@suse.cz> Date: Thu, 14 Jul 2016 14:48:40 +0200 MIME-Version: 1.0 In-Reply-To: <1467970510-21195-27-git-send-email-mgorman@techsingularity.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Mel Gorman , Andrew Morton , Linux-MM Cc: Rik van Riel , Johannes Weiner , Minchan Kim , Joonsoo Kim , LKML On 07/08/2016 11:35 AM, Mel Gorman wrote: > As pointed out by Minchan Kim, the first call to prepare_kswapd_sleep > always passes in 0 for remaining and the second call can trivially > check the parameter in advance. > > Suggested-by: Minchan Kim > Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka -- 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