Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp334445ybk; Sat, 9 May 2020 04:25:26 -0700 (PDT) X-Google-Smtp-Source: APiQypIsTM2XvvDQFmCkyYtOv/dxm5MdUXr9nfC0vFR7SNPMp7IrVGkFnnnEjv7gCF1KDrBgGTQF X-Received: by 2002:a17:906:c950:: with SMTP id fw16mr1261629ejb.65.1589023526019; Sat, 09 May 2020 04:25:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589023526; cv=none; d=google.com; s=arc-20160816; b=kCnrRDh+ZMd7ZMtqFC7voROrYoNH3t5FJy3ZuI5heteLdEv38DO3ee0HSDouGY0K85 Lr4N9QtmwuJFNDU0cBUjt4Wvtp8mv4FAiC4BlLuH2EMS4YxqACSprOaJjiXwR0XRKBuk puaJYDEPzHe3VAaO/mlvT0veOh/uJDxoUaljwn4pz7LuxGDhObP5V+iJj9vl1fzKaBgW ujJFURfDYfN81d0EixEOKNzgcE33bifec0uouQhl/EQ8QBrX0X5TMDK0/2qH5aeJyvxM 87DI+BhovpSz3zS0bP1h4vuZ6u5GAbbnCWJDTnwwy7PF9ABY2JZ2KhvcL7Xjd+4TkRHj am6A== 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=wELo8TqNjJRFd3NydhJNdiMcxLHjbhrZxsE7/R2swJU=; b=OWpwzmG6OXBXBpDwvDbA0OJbQgpp7VwsgT22z1mlJaS7FJr0WehsQxjOzdGELuOeXf s7ykFh4E6EyZMLLllU2uGmXbIme1R/Nrei3KruSf51wzsWwZdOs+m9WmloeLiMLNIsxP O0WcPTnyTKpmIE18MQ9hRubijxySIQzylBGyydcghjakNrM79tWPR/LzX6IUodGyNZc+ 1QhRtML3OfszomPILKthhQml8D+0xBzCk/Ngtegq9ncQco8sKcddGT67QcUqq0OnE1jm kJAZn4OlrOh8T5VyvJKPns2/mCYFQ0qlCwhCq8bcIerlG4N36HhcPsa5JaU/2jjM8C7j FrNg== 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 da11si2557633edb.431.2020.05.09.04.25.03; Sat, 09 May 2020 04:25:26 -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 S1728199AbgEILXJ (ORCPT + 99 others); Sat, 9 May 2020 07:23:09 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4321 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726600AbgEILXI (ORCPT ); Sat, 9 May 2020 07:23:08 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id DD8CBFC340B6D1C401E5; Sat, 9 May 2020 19:23:03 +0800 (CST) Received: from localhost (10.166.215.154) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Sat, 9 May 2020 19:22:57 +0800 From: YueHaibing To: , , CC: , , YueHaibing Subject: [PATCH -next] btrfs: Remove unused inline function btrfs_dev_extent_chunk_tree_uuid Date: Sat, 9 May 2020 19:22:43 +0800 Message-ID: <20200509112243.54176-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.166.215.154] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's no callers in-tree anymore since commit d24ee97b96db ("btrfs: use new helpers to set uuids in eb") Signed-off-by: YueHaibing --- fs/btrfs/ctree.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 03ea7370aea7..0b78ab0213bb 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -1643,13 +1643,6 @@ BTRFS_SETGET_FUNCS(dev_extent_chunk_objectid, struct btrfs_dev_extent, BTRFS_SETGET_FUNCS(dev_extent_chunk_offset, struct btrfs_dev_extent, chunk_offset, 64); BTRFS_SETGET_FUNCS(dev_extent_length, struct btrfs_dev_extent, length, 64); - -static inline unsigned long btrfs_dev_extent_chunk_tree_uuid(struct btrfs_dev_extent *dev) -{ - unsigned long ptr = offsetof(struct btrfs_dev_extent, chunk_tree_uuid); - return (unsigned long)dev + ptr; -} - BTRFS_SETGET_FUNCS(extent_refs, struct btrfs_extent_item, refs, 64); BTRFS_SETGET_FUNCS(extent_generation, struct btrfs_extent_item, generation, 64); -- 2.17.1