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
79904fa2
Commit
79904fa2
authored
Dec 11, 2023
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: bch2_trans_srcu_lock() should be static
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
6d5c606c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fs/bcachefs/btree_iter.c
fs/bcachefs/btree_iter.c
+2
-1
fs/bcachefs/btree_iter.h
fs/bcachefs/btree_iter.h
+0
-1
No files found.
fs/bcachefs/btree_iter.c
View file @
79904fa2
...
...
@@ -35,6 +35,7 @@ static inline unsigned long btree_iter_ip_allocated(struct btree_iter *iter)
}
static
struct
btree_path
*
btree_path_alloc
(
struct
btree_trans
*
,
struct
btree_path
*
);
static
void
bch2_trans_srcu_lock
(
struct
btree_trans
*
);
static
inline
int
__btree_path_cmp
(
const
struct
btree_path
*
l
,
enum
btree_id
r_btree_id
,
...
...
@@ -2764,7 +2765,7 @@ void bch2_trans_srcu_unlock(struct btree_trans *trans)
}
}
void
bch2_trans_srcu_lock
(
struct
btree_trans
*
trans
)
static
void
bch2_trans_srcu_lock
(
struct
btree_trans
*
trans
)
{
if
(
!
trans
->
srcu_held
)
{
trans
->
srcu_idx
=
srcu_read_lock
(
&
trans
->
c
->
btree_trans_barrier
);
...
...
fs/bcachefs/btree_iter.h
View file @
79904fa2
...
...
@@ -565,7 +565,6 @@ static inline int __bch2_bkey_get_val_typed(struct btree_trans *trans,
KEY_TYPE_##_type, sizeof(*_val), _val)
void
bch2_trans_srcu_unlock
(
struct
btree_trans
*
);
void
bch2_trans_srcu_lock
(
struct
btree_trans
*
);
u32
bch2_trans_begin
(
struct
btree_trans
*
);
...
...
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