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
4c1c1e39
Commit
4c1c1e39
authored
Mar 31, 2019
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: fix bch2_trans_unlock()
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
a2b6b072
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fs/bcachefs/btree_iter.c
fs/bcachefs/btree_iter.c
+4
-4
No files found.
fs/bcachefs/btree_iter.c
View file @
4c1c1e39
...
...
@@ -1705,7 +1705,7 @@ void bch2_trans_preload_iters(struct btree_trans *trans)
static
int
btree_trans_iter_alloc
(
struct
btree_trans
*
trans
)
{
unsigned
idx
=
ffz
(
trans
->
iters_linked
);
unsigned
idx
=
__ffs64
(
~
trans
->
iters_linked
);
if
(
idx
<
trans
->
nr_iters
)
goto
got_slot
;
...
...
@@ -1871,17 +1871,17 @@ void *bch2_trans_kmalloc(struct btree_trans *trans,
int
bch2_trans_unlock
(
struct
btree_trans
*
trans
)
{
u
nsigned
iters
=
trans
->
iters_linked
;
u
64
iters
=
trans
->
iters_linked
;
int
ret
=
0
;
while
(
iters
)
{
unsigned
idx
=
__ffs
(
iters
);
unsigned
idx
=
__ffs
64
(
iters
);
struct
btree_iter
*
iter
=
&
trans
->
iters
[
idx
];
ret
=
ret
?:
btree_iter_err
(
iter
);
__bch2_btree_iter_unlock
(
iter
);
iters
^=
1
<<
idx
;
iters
^=
1
ULL
<<
idx
;
}
return
ret
;
...
...
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