Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2854187rdb; Tue, 12 Sep 2023 14:25:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZ3mDKL9f2hLBXcyVQ1i0w0qD8zKQ44eW4L3TTO8Ox3kyNsrHi9/qhPqcrkYTQa/i9Br1N X-Received: by 2002:a17:903:228c:b0:1c3:e40d:ffec with SMTP id b12-20020a170903228c00b001c3e40dffecmr1098935plh.47.1694553930142; Tue, 12 Sep 2023 14:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694553930; cv=none; d=google.com; s=arc-20160816; b=PR/njE/hu9OUqXww+RNh0HXU5FBo/aPUUtoBNYgrGMm48NI81HSzTF83Ge5vpOfe2H qtQQDbCKnwQuf4aGQDJdHP4nf2hcd/JpaloVbkCM6mFyhh7+xI+gFyfOdna8tzCk08Pb EX1GX+HC+IfuUKirkonv9twcyJ7iM64ZxlM1T0XVo+19QYdrYRdSBHTzJDIFBKHHfEnW S7XaUfPxtZUTn/xyRWJzVU/plo6Ve7OAG4cUyvtYtyUQXUwCBaSTI/trmdi2PIFi0VYP vaJXe6z+za2Zhv556dtMcR7XGsvwnSGGLxDzZdg6PyswWWH1HbqqPaA3Ms9HA/FfStMW Iv7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=EUqIyYQCNqYTPGY2CcW0DUD5gZP3dzQicgJCw3Muze4=; fh=4hWYXOZPVnsazVJtA2U9efwFkVrBftMezeKsFlHg7DA=; b=ORkTg4mk55lhKjQ32VOgJC2mF2E1+2RfQ0Zl5BhvwMQ/hRNX148gmSffd+Hb6oqB04 3RfB5MGTu2CgURb25pzkQvtsMy/jiuiWZ8jnLA0dco2FqKoVkOKaa1J/lHoJjl7CacgP VKXzog/SXLTK9Aml9xX2rCe3ZVC5hSvV9fdQT46His50lJ2l+qcOJw8NFOPqaf7msZIr XMkg9mycpPR90e28DU/UwQV6EmH6HcsE9JX2TXkYhr8K3rN+YjdXAJ0hRlEDN+GSFf8D w6CngYGR8EFzSdnXJo0gCSBPYeL9O5Tl0rZjH5lEYJKeMOfdF6viEAPF67yPwMJQSnbU 1SHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=ghUe4u4V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id m2-20020a170902c44200b001b864d88d85si8390630plm.636.2023.09.12.14.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 14:25:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=ghUe4u4V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5B150823B3FF; Tue, 12 Sep 2023 14:25:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236400AbjILVZL (ORCPT + 99 others); Tue, 12 Sep 2023 17:25:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232007AbjILVZF (ORCPT ); Tue, 12 Sep 2023 17:25:05 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15BB910CA; Tue, 12 Sep 2023 14:25:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1694553899; bh=lcaIV/ECVCgvfmpOvOHhH9PShQ1WRH/cLwz2eArAXE4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ghUe4u4VKEZLM18H9S+zUlfgL1vzoQarlSYzrB9AQzGeco00227DWylXO3Mcpu3Aj dsUHblvTVW3hTHbJH/XMGQmqmMtfpXtEOEk3WFqGt4lxtH1OLUQRCHL1KOhLDER4ay 99xs8+bA1oUvYKhvoKzFRnfQW1svtLQPc/D3e6Ak= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 12 Sep 2023 23:24:41 +0200 Subject: [PATCH 2/5] bcachefs: Mark bch2_snapshot_node_delete() static MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230912-bcachefs-cleanup-v1-2-c1f717424e6a@weissschuh.net> References: <20230912-bcachefs-cleanup-v1-0-c1f717424e6a@weissschuh.net> In-Reply-To: <20230912-bcachefs-cleanup-v1-0-c1f717424e6a@weissschuh.net> To: Kent Overstreet , Brian Foster Cc: linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694553898; l=755; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=lcaIV/ECVCgvfmpOvOHhH9PShQ1WRH/cLwz2eArAXE4=; b=C1az70RMin9nhh865O+G2H+Zias+zDorazwXfRauKsf9FyYfBQCBoCIXKL8BRCrr6512kw+Oi l5ONOXBg3RiBInEyVDrIO2thY1tamVeFhYZCegF3O1AP0I6o+dcfdnx X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 12 Sep 2023 14:25:19 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email It is never used outside of snapshot.c. Signed-off-by: Thomas Weißschuh --- fs/bcachefs/snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/snapshot.c b/fs/bcachefs/snapshot.c index 9da09911466e..c69b16010027 100644 --- a/fs/bcachefs/snapshot.c +++ b/fs/bcachefs/snapshot.c @@ -930,7 +930,7 @@ static inline void normalize_snapshot_child_pointers(struct bch_snapshot *s) swap(s->children[0], s->children[1]); } -int bch2_snapshot_node_delete(struct btree_trans *trans, u32 id) +static int bch2_snapshot_node_delete(struct btree_trans *trans, u32 id) { struct bch_fs *c = trans->c; struct btree_iter iter, p_iter = (struct btree_iter) { NULL }; -- 2.42.0