Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4c5289e6
Commit
4c5289e6
authored
Dec 10, 2023
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: kill trans_for_each_path_from()
dead code Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
311e446a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
fs/bcachefs/btree_iter.h
fs/bcachefs/btree_iter.h
+2
-5
No files found.
fs/bcachefs/btree_iter.h
View file @
4c5289e6
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment