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
72644db1
Commit
72644db1
authored
Nov 03, 2018
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: Fix an assertion when rebuilding replicas
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
02f1a96c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
fs/bcachefs/extents.c
fs/bcachefs/extents.c
+4
-2
fs/bcachefs/recovery.c
fs/bcachefs/recovery.c
+2
-0
No files found.
fs/bcachefs/extents.c
View file @
72644db1
...
@@ -679,7 +679,8 @@ void bch2_btree_ptr_debugcheck(struct bch_fs *c, struct btree *b,
...
@@ -679,7 +679,8 @@ void bch2_btree_ptr_debugcheck(struct bch_fs *c, struct btree *b,
goto
err
;
goto
err
;
}
}
if
(
!
bch2_bkey_replicas_marked
(
c
,
btree_node_type
(
b
),
e
.
s_c
))
{
if
(
!
test_bit
(
BCH_FS_REBUILD_REPLICAS
,
&
c
->
flags
)
&&
!
bch2_bkey_replicas_marked
(
c
,
btree_node_type
(
b
),
e
.
s_c
))
{
bch2_bkey_val_to_text
(
c
,
btree_node_type
(
b
),
bch2_bkey_val_to_text
(
c
,
btree_node_type
(
b
),
buf
,
sizeof
(
buf
),
k
);
buf
,
sizeof
(
buf
),
k
);
bch2_fs_bug
(
c
,
bch2_fs_bug
(
c
,
...
@@ -1713,7 +1714,8 @@ static void bch2_extent_debugcheck_extent(struct bch_fs *c, struct btree *b,
...
@@ -1713,7 +1714,8 @@ static void bch2_extent_debugcheck_extent(struct bch_fs *c, struct btree *b,
return
;
return
;
}
}
if
(
!
bch2_bkey_replicas_marked
(
c
,
btree_node_type
(
b
),
e
.
s_c
))
{
if
(
!
test_bit
(
BCH_FS_REBUILD_REPLICAS
,
&
c
->
flags
)
&&
!
bch2_bkey_replicas_marked
(
c
,
btree_node_type
(
b
),
e
.
s_c
))
{
bch2_bkey_val_to_text
(
c
,
btree_node_type
(
b
),
bch2_bkey_val_to_text
(
c
,
btree_node_type
(
b
),
buf
,
sizeof
(
buf
),
e
.
s_c
);
buf
,
sizeof
(
buf
),
e
.
s_c
);
bch2_fs_bug
(
c
,
bch2_fs_bug
(
c
,
...
...
fs/bcachefs/recovery.c
View file @
72644db1
...
@@ -219,6 +219,8 @@ int bch2_fs_recovery(struct bch_fs *c)
...
@@ -219,6 +219,8 @@ int bch2_fs_recovery(struct bch_fs *c)
goto
err
;
goto
err
;
bch_verbose
(
c
,
"mark and sweep done"
);
bch_verbose
(
c
,
"mark and sweep done"
);
clear_bit
(
BCH_FS_REBUILD_REPLICAS
,
&
c
->
flags
);
if
(
c
->
opts
.
noreplay
)
if
(
c
->
opts
.
noreplay
)
goto
out
;
goto
out
;
...
...
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