Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp467781pxk; Wed, 9 Sep 2020 09:56:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4W0rlrtnLtD+FMAH+kjBCMW3VAYrjJC/AM82xiQGlERCbr4hB0k82NTGbrebHDu4alfOS X-Received: by 2002:aa7:d6c6:: with SMTP id x6mr5117033edr.338.1599670591434; Wed, 09 Sep 2020 09:56:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599670591; cv=none; d=google.com; s=arc-20160816; b=gsfj+UAFVwHFIAtO5zpyfSq1Vl1wB2ztMighO4rdQh8y/eK2U3t9qg8/iuh3nG0glb e37klwdW/uSBV+zbGy6zPKT/sgb4xZg7dPLD5SE/3ZAnKav48SLgVF0NMHyq3hBynEBX yHwF7Tn4xxlYTL8OTuCqgdXplXTj64mGKqxTip8TuA2qS+Xjhpy9D9tPP9RslwGeMp2B gvHDNuG2iWQmsilzGfxrlixsypXFjTHecbQl2FYOHyHchNlNpwGkymK0RBxo5uK7Bevq EGWGDvtNIhysOLKeW/WxT53koIIjhOghVoP+KKY8XVDowciT976NvxvYMwnBbKs9ok9T vpmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=uUAcbS0uqZOaQVbwyBiXtSdPlBGKSxXjPHwWkIt0YNQ=; b=bdxPlUEA9DSkPw5VpHvC0IWv+3e9JPX7LKfAkFuKTt2LlmBMXYdj2GJ8v12yqPqU+i piBxuZB+bIcvUITWZKw2Zwuov5p4KaNQMI3QLLw455/jV+EO/J8E+eKf2BVEM7hx6HTS uSn5mz2agcRvzYCk0VV5usmo+O9ZRuBVRkS+4DInfRxOzRaxuz4Sfv7k26t+NICtkzkj e4t3dvzZ7fDIf7QLLgAxxirg6fXHfkx+5t4QJlqMXxWi9GrxyN8T4H/6vmOJgPYN+oci sf2i0IxWofJIPj/DYXVtQ0AnS7c43bGB2kMnPbtfj6BqL2QMde4CG9KxPDoMdrWJkK2v bUXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t27si1838141edc.436.2020.09.09.09.56.08; Wed, 09 Sep 2020 09:56:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730531AbgIIPxn (ORCPT + 99 others); Wed, 9 Sep 2020 11:53:43 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:41702 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730581AbgIIPtp (ORCPT ); Wed, 9 Sep 2020 11:49:45 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 354901E989B60028A84F; Wed, 9 Sep 2020 21:52:51 +0800 (CST) Received: from localhost (10.174.179.108) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Wed, 9 Sep 2020 21:52:41 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH -next] btrfs: Remove unused function calc_global_rsv_need_space() Date: Wed, 9 Sep 2020 21:51:42 +0800 Message-ID: <20200909135142.27352-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.179.108] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is not used since commit 0096420adb03 ("btrfs: do not account global reserve in can_overcommit") Signed-off-by: YueHaibing --- fs/btrfs/space-info.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fs/btrfs/space-info.c b/fs/btrfs/space-info.c index b733718f45d3..0f16a2ce5401 100644 --- a/fs/btrfs/space-info.c +++ b/fs/btrfs/space-info.c @@ -301,11 +301,6 @@ struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, return NULL; } -static inline u64 calc_global_rsv_need_space(struct btrfs_block_rsv *global) -{ - return (global->size << 1); -} - static u64 calc_available_free_space(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, enum btrfs_reserve_flush_enum flush) -- 2.17.1