Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751824AbdISUGo (ORCPT ); Tue, 19 Sep 2017 16:06:44 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:50072 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751499AbdISUGm (ORCPT ); Tue, 19 Sep 2017 16:06:42 -0400 Date: Tue, 19 Sep 2017 16:06:38 -0400 From: Johannes Weiner To: Jens Axboe Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, clm@fb.com, jack@suse.cz Subject: Re: [PATCH 3/6] page-writeback: pass in '0' for nr_pages writeback in laptop mode Message-ID: <20170919200638.GC11873@cmpxchg.org> References: <1505850787-18311-1-git-send-email-axboe@kernel.dk> <1505850787-18311-4-git-send-email-axboe@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1505850787-18311-4-git-send-email-axboe@kernel.dk> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 417 Lines: 11 On Tue, Sep 19, 2017 at 01:53:04PM -0600, Jens Axboe wrote: > Laptop mode really wants to writeback the number of dirty > pages and inodes. Instead of calculating this in the caller, > just pass in 0 and let wakeup_flusher_threads() handle it. > > Use the new wakeup_flusher_threads_bdi() instead of rolling > our own. > > Signed-off-by: Jens Axboe Acked-by: Johannes Weiner