From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f70.google.com (mail-wm0-f70.google.com [74.125.82.70]) by kanga.kvack.org (Postfix) with ESMTP id 0BC9D6B0253 for ; Tue, 19 Sep 2017 16:06:43 -0400 (EDT) Received: by mail-wm0-f70.google.com with SMTP id f4so549942wmh.7 for ; Tue, 19 Sep 2017 13:06:43 -0700 (PDT) Received: from gum.cmpxchg.org (gum.cmpxchg.org. [85.214.110.215]) by mx.google.com with ESMTPS id f24si98428edc.451.2017.09.19.13.06.42 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Sep 2017 13:06:42 -0700 (PDT) Date: Tue, 19 Sep 2017 16:06:38 -0400 From: Johannes Weiner 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> Sender: owner-linux-mm@kvack.org List-ID: To: Jens Axboe Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, clm@fb.com, jack@suse.cz 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 -- 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