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
aa6e130e
Commit
aa6e130e
authored
Mar 24, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: Add an assertion for trying to evict btree root
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
4bd02d3f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
fs/bcachefs/btree_cache.c
fs/bcachefs/btree_cache.c
+2
-0
No files found.
fs/bcachefs/btree_cache.c
View file @
aa6e130e
...
@@ -1134,6 +1134,8 @@ void bch2_btree_node_evict(struct btree_trans *trans, const struct bkey_i *k)
...
@@ -1134,6 +1134,8 @@ void bch2_btree_node_evict(struct btree_trans *trans, const struct bkey_i *k)
b
=
btree_cache_find
(
bc
,
k
);
b
=
btree_cache_find
(
bc
,
k
);
if
(
!
b
)
if
(
!
b
)
return
;
return
;
BUG_ON
(
b
==
btree_node_root
(
trans
->
c
,
b
));
wait_on_io:
wait_on_io:
/* not allowed to wait on io with btree locks held: */
/* not allowed to wait on io with btree locks held: */
...
...
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