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
c451986b
Commit
c451986b
authored
Apr 07, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: do reflink_p repair from BTREE_TRIGGER_check_repair
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
f40d13f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
fs/bcachefs/reflink.c
fs/bcachefs/reflink.c
+5
-2
No files found.
fs/bcachefs/reflink.c
View file @
c451986b
...
...
@@ -164,10 +164,13 @@ static s64 gc_trigger_reflink_p_segment(struct btree_trans *trans,
BUG_ON
((
s64
)
r
->
refcount
+
add
<
0
);
r
->
refcount
+=
add
;
if
(
flags
&
BTREE_TRIGGER_gc
)
r
->
refcount
+=
add
;
*
idx
=
r
->
offset
;
return
0
;
not_found:
BUG_ON
(
!
(
flags
&
BTREE_TRIGGER_check_repair
));
if
(
fsck_err
(
c
,
reflink_p_to_missing_reflink_v
,
"pointer to missing indirect extent
\n
"
" %s
\n
"
...
...
@@ -216,7 +219,7 @@ static int __trigger_reflink_p(struct btree_trans *trans,
ret
=
trans_trigger_reflink_p_segment
(
trans
,
p
,
&
idx
,
flags
);
}
if
(
flags
&
BTREE_TRIGGER_gc
)
{
if
(
flags
&
(
BTREE_TRIGGER_check_repair
|
BTREE_TRIGGER_gc
)
)
{
size_t
l
=
0
,
r
=
c
->
reflink_gc_nr
;
while
(
l
<
r
)
{
...
...
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