[2/5] bcachefs: Mark bch2_snapshot_node_delete() static

Message ID 20230912-bcachefs-cleanup-v1-2-c1f717424e6a@weissschuh.net
State New
Headers
Series bcachefs: Fixes for various compiler warnings |

Commit Message

Thomas Weißschuh Sept. 12, 2023, 9:24 p.m. UTC
  It is never used outside of snapshot.c.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
 fs/bcachefs/snapshot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

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 };