]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bcachefs: kill trans_for_each_path_from()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 10 Dec 2023 22:54:02 +0000 (17:54 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:43 +0000 (11:47 -0500)
dead code

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.h

index 173c91e5f6b0604fdc5049833986347d8980e907..b70aacafac20fa342ef9ab525838283da977f31c 100644 (file)
@@ -74,14 +74,11 @@ __trans_next_path(struct btree_trans *trans, unsigned idx)
        return &trans->paths[idx];
 }
 
-#define trans_for_each_path_from(_trans, _path, _start)                        \
-       for (_path = __trans_next_path((_trans), _start);               \
+#define trans_for_each_path(_trans, _path)                             \
+       for (_path = __trans_next_path((_trans), 1);                    \
             (_path);                                                   \
             _path = __trans_next_path((_trans), (_path)->idx + 1))
 
-#define trans_for_each_path(_trans, _path)                             \
-       trans_for_each_path_from(_trans, _path, 1)
-
 static inline struct btree_path *
 __trans_next_path_safe(struct btree_trans *trans, unsigned *idx)
 {