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
10d9f7d2
Commit
10d9f7d2
authored
Mar 10, 2023
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: ec: fall back to creating new stripes for copygc
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
57c723de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
fs/bcachefs/ec.c
fs/bcachefs/ec.c
+8
-0
No files found.
fs/bcachefs/ec.c
View file @
10d9f7d2
...
...
@@ -1706,6 +1706,14 @@ struct ec_stripe_head *bch2_ec_stripe_head_get(struct btree_trans *trans,
if
(
waiting
||
!
cl
||
ret
!=
-
BCH_ERR_stripe_alloc_blocked
)
goto
err
;
if
(
reserve
==
RESERVE_movinggc
)
{
ret
=
new_stripe_alloc_buckets
(
trans
,
h
,
reserve
,
NULL
)
?:
__bch2_ec_stripe_head_reserve
(
trans
,
h
);
if
(
ret
)
goto
err
;
goto
allocate_buf
;
}
/* XXX freelist_wait? */
closure_wait
(
&
c
->
freelist_wait
,
cl
);
waiting
=
true
;
...
...
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