Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752375AbdI0WNU (ORCPT ); Wed, 27 Sep 2017 18:13:20 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:48129 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752332AbdI0WNQ (ORCPT ); Wed, 27 Sep 2017 18:13:16 -0400 X-Google-Smtp-Source: AOwi7QCLAlpnSTvgrj5dQOqJt9/V4rAq+WdCiYds0lpFQgbJs+eOlDzjOQJwwCw8fDTh8Ik7Rpfs0w== From: Tahsin Erdogan To: Andrew Morton , Jan Kara , Johannes Weiner , Vladimir Davydov , Michal Hocko , Jeff Layton , Matthew Wilcox , Masahiro Yamada , "Theodore Ts'o" , Nikolay Borisov Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Tahsin Erdogan Subject: [PATCH] writeback: remove unused parameter from balance_dirty_pages() Date: Wed, 27 Sep 2017 15:13:11 -0700 Message-Id: <20170927221311.23263-1-tahsin@google.com> X-Mailer: git-send-email 2.14.2.822.g60be5d43e6-goog Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1230 Lines: 34 "mapping" parameter to balance_dirty_pages() is not used anymore. Fixes: dfb8ae567835 ("writeback: let balance_dirty_pages() work on the matching cgroup bdi_writeback") Signed-off-by: Tahsin Erdogan --- mm/page-writeback.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 0b9c5cbe8eba..d89663f00e93 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -1559,8 +1559,7 @@ static inline void wb_dirty_limits(struct dirty_throttle_control *dtc) * If we're over `background_thresh' then the writeback threads are woken to * perform some writeout. */ -static void balance_dirty_pages(struct address_space *mapping, - struct bdi_writeback *wb, +static void balance_dirty_pages(struct bdi_writeback *wb, unsigned long pages_dirtied) { struct dirty_throttle_control gdtc_stor = { GDTC_INIT(wb) }; @@ -1910,7 +1909,7 @@ void balance_dirty_pages_ratelimited(struct address_space *mapping) preempt_enable(); if (unlikely(current->nr_dirtied >= ratelimit)) - balance_dirty_pages(mapping, wb, current->nr_dirtied); + balance_dirty_pages(wb, current->nr_dirtied); wb_put(wb); } -- 2.14.2.822.g60be5d43e6-goog