Received: by 10.223.164.221 with SMTP id h29csp809143wrb; Sat, 4 Nov 2017 04:24:40 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SK5xor6HAuf/TCO+qdQdkL6sls9pRmk8sUC5fPb93Mx9obIlpS/hVtbdz/zfz8YpcqhKqt X-Received: by 10.98.147.23 with SMTP id b23mr10637052pfe.5.1509794679893; Sat, 04 Nov 2017 04:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509794679; cv=none; d=google.com; s=arc-20160816; b=sSqeV7vtJrS2Hr7Re5tt8ifxtoham5jHYm1ljR53CREsemPypPmNKh+uWRVHhSnKEO E3BFwGJs/3MwW4M4T45q5l4bGPbYEsL/BOPZVlvuKY94wZ2ObbhOtabdrKzQI6NBaNVp s/JA8im7q2YrgsIqYBz9L+PoB3k1LdbbkritcOjD9yGXPPnby1wMgCVrN2TnL8JoHKaD R2JbEDgkG7f+ufoTfByyRBHJAJzq9Efq2YB59AaJkJFRRH3GxosPp/abOn8P4iAs2LRk NYzHfiTmXdMbr500MI72X9VTmv3qgyUPHoOYj+cGoLaFieHE3+fspl65VCY9s5u3lMN2 vyGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=C3Aqqh3PLeTaZltMgnCS2tepXNbolcD+ZclUoF80S/U=; b=ysax0dawstlXxozPvUFkmztBMhAkV9Awst3urdIG3dG60ZEqOeqhuh6WcbrGEl6Yit QXuRgyWXh5X22l6XiqRowxFmHXFiYe2phbVyQVYSeGhRm9KfBXjOtYyOT6RSVaHwIaDY ukdqhEeI7gjJ+9LQTBfRcFiynUiiJVhZTOcKVx5VJqkWO+xsHCMgw0QTH9OpR/h+bJlz u/+TaLu24N/Jl/IMz34nAW7wzMsxDJ2x8q55oUogVMaf47zZ/UB5qy9pDf3hooeH0k1Q kKBzRG1guR6gdq048f5bG1nBwpOmLuccWE8T5rrmnnpFvieysWyLz0cxaIwR6m8+mqE5 +hVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@meituan.com header.s=20130113 header.b=JUaLPpX6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=meituan.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91si6607423ply.180.2017.11.04.04.24.26; Sat, 04 Nov 2017 04:24:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@meituan.com header.s=20130113 header.b=JUaLPpX6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=meituan.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933366AbdKDLWj (ORCPT + 94 others); Sat, 4 Nov 2017 07:22:39 -0400 Received: from mx-fe5-210.meituan.com ([103.37.138.210]:40084 "EHLO mx02.meituan.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933076AbdKDLWh (ORCPT ); Sat, 4 Nov 2017 07:22:37 -0400 Received: from dx-it-mx02.dx.sankuai.com (localhost [127.0.0.1]) by dx-it-mx02.dx.sankuai.com (Postfix) with ESMTP id E3E2C2977F02; Sat, 4 Nov 2017 19:22:33 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by dx-it-mx02.dx.sankuai.com (Postfix) with ESMTP id C7A282977F78; Sat, 4 Nov 2017 19:22:33 +0800 (CST) Received: from mx02.meituan.com ([127.0.0.1]) by localhost (dx-it-mx02.dx.sankuai.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id IJa6_etOWxyc; Sat, 4 Nov 2017 19:22:33 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by dx-it-mx02.dx.sankuai.com (Postfix) with ESMTP id 9CD1F2977E79; Sat, 4 Nov 2017 19:22:33 +0800 (CST) DKIM-Filter: OpenDKIM Filter v2.9.2 dx-it-mx02.dx.sankuai.com 9CD1F2977E79 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meituan.com; s=20130113; t=1509794553; bh=C3Aqqh3PLeTaZltMgnCS2tepXNbolcD+ZclUoF80S/U=; h=From:To:Subject:Date:Message-Id; b=JUaLPpX6XRckRH0ASXI+0Vc5GPxzp773Zvbtyt+khARdCJKcIrR2PwZFsJOdhIFSH ItZVh2WTMMYbzskrz5qxOJvfGh/hBUmzyCTSdD/SJHKW3YQjcwwPDtP9b1SAi2JFLS jjPzsyWjVpeS2eRfeG+d5AW742ngulz1/uYV6CqM= X-Virus-Scanned: amavisd-new at dx-it-mx02.dx.sankuai.com Received: from mx02.meituan.com ([127.0.0.1]) by localhost (dx-it-mx02.dx.sankuai.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 4r09kraU2Ojj; Sat, 4 Nov 2017 19:22:33 +0800 (CST) Received: from localhost.lan (unknown [221.223.164.73]) by dx-it-mx02.dx.sankuai.com (Postfix) with ESMTPA id CA4DA2977F78; Sat, 4 Nov 2017 19:22:16 +0800 (CST) From: Wang Long To: jack@suse.cz, tj@kernel.org, akpm@linux-foundation.org, gregkh@linuxfoundation.org Cc: axboe@fb.com, nborisov@suse.com, hannes@cmpxchg.org, vdavydov.dev@gmail.com, jlayton@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH] writeback: remove the unused function parameter Date: Thu, 2 Nov 2017 23:44:32 -0400 Message-Id: <1509680672-10004-1-git-send-email-wanglong19@meituan.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Wang Long --- include/linux/backing-dev.h | 2 +- mm/page-writeback.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index 1662157..186a2e7 100644 --- a/include/linux/backing-dev.h +++ b/include/linux/backing-dev.h @@ -95,7 +95,7 @@ static inline s64 wb_stat_sum(struct bdi_writeback *wb, enum wb_stat_item item) /* * maximal error of a stat counter. */ -static inline unsigned long wb_stat_error(struct bdi_writeback *wb) +static inline unsigned long wb_stat_error(void) { #ifdef CONFIG_SMP return nr_cpu_ids * WB_STAT_BATCH; diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 0b9c5cb..9287466 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -1543,7 +1543,7 @@ static inline void wb_dirty_limits(struct dirty_throttle_control *dtc) * actually dirty; with m+n sitting in the percpu * deltas. */ - if (dtc->wb_thresh < 2 * wb_stat_error(wb)) { + if (dtc->wb_thresh < 2 * wb_stat_error()) { wb_reclaimable = wb_stat_sum(wb, WB_RECLAIMABLE); dtc->wb_dirty = wb_reclaimable + wb_stat_sum(wb, WB_WRITEBACK); } else { @@ -1802,7 +1802,7 @@ static void balance_dirty_pages(struct address_space *mapping, * more page. However wb_dirty has accounting errors. So use * the larger and more IO friendly wb_stat_error. */ - if (sdtc->wb_dirty <= wb_stat_error(wb)) + if (sdtc->wb_dirty <= wb_stat_error()) break; if (fatal_signal_pending(current)) -- 1.8.3.1 From 1583337251301888889@xxx Mon Nov 06 17:07:50 +0000 2017 X-GM-THRID: 1582721727904789992 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread