diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-10 17:54:02 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:43 -0500 |
commit | 4c5289e6323ca9d0d46b3663ace2fb44bb2594b7 (patch) | |
tree | 6ba5369ce3c394c1de1458166d1e1a5d962bab65 /fs | |
parent | 311e446a414885aed71bc8106bdc4874774343c4 (diff) | |
download | lwn-4c5289e6323ca9d0d46b3663ace2fb44bb2594b7.tar.gz lwn-4c5289e6323ca9d0d46b3663ace2fb44bb2594b7.zip |
bcachefs: kill trans_for_each_path_from()
dead code
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/btree_iter.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/bcachefs/btree_iter.h b/fs/bcachefs/btree_iter.h index 173c91e5f6b0..b70aacafac20 100644 --- a/fs/bcachefs/btree_iter.h +++ b/fs/bcachefs/btree_iter.h @@ -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) { |