From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f200.google.com (mail-pf0-f200.google.com [209.85.192.200]) by kanga.kvack.org (Postfix) with ESMTP id EED356B0069 for ; Tue, 19 Sep 2017 15:53:16 -0400 (EDT) Received: by mail-pf0-f200.google.com with SMTP id f84so961443pfj.0 for ; Tue, 19 Sep 2017 12:53:16 -0700 (PDT) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id l15sor1333264pgn.183.2017.09.19.12.53.15 for (Google Transport Security); Tue, 19 Sep 2017 12:53:15 -0700 (PDT) From: Jens Axboe Subject: [PATCH 1/6] buffer: cleanup free_more_memory() flusher wakeup Date: Tue, 19 Sep 2017 13:53:02 -0600 Message-Id: <1505850787-18311-2-git-send-email-axboe@kernel.dk> In-Reply-To: <1505850787-18311-1-git-send-email-axboe@kernel.dk> References: <1505850787-18311-1-git-send-email-axboe@kernel.dk> Sender: owner-linux-mm@kvack.org List-ID: To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Cc: hannes@cmpxchg.org, clm@fb.com, jack@suse.cz, Jens Axboe This whole function is... interesting. Change the wakeup call to the flusher threads to pass in nr_pages == 0, instead of some random number of pages. This matches more closely what similar cases do for memory shortage/reclaim. Signed-off-by: Jens Axboe --- fs/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/buffer.c b/fs/buffer.c index 170df856bdb9..9471a445e370 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -260,7 +260,7 @@ static void free_more_memory(void) struct zoneref *z; int nid; - wakeup_flusher_threads(1024, WB_REASON_FREE_MORE_MEM); + wakeup_flusher_threads(0, WB_REASON_FREE_MORE_MEM); yield(); for_each_online_node(nid) { -- 2.7.4 -- 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