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
11827dba
Commit
11827dba
authored
Aug 07, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: trivial open_bucket_add_buckets() cleanup
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
d89b35d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
fs/bcachefs/alloc_foreground.c
fs/bcachefs/alloc_foreground.c
+1
-4
No files found.
fs/bcachefs/alloc_foreground.c
View file @
11827dba
...
...
@@ -1022,9 +1022,6 @@ static int __open_bucket_add_buckets(struct btree_trans *trans,
open_bucket_for_each
(
c
,
ptrs
,
ob
,
i
)
__clear_bit
(
ob
->
dev
,
devs
.
d
);
if
(
erasure_code
&&
ec_open_bucket
(
c
,
ptrs
))
return
0
;
ret
=
bucket_alloc_set_writepoint
(
c
,
ptrs
,
wp
,
&
devs
,
nr_replicas
,
nr_effective
,
have_cache
,
erasure_code
,
flags
);
...
...
@@ -1079,7 +1076,7 @@ static int open_bucket_add_buckets(struct btree_trans *trans,
{
int
ret
;
if
(
erasure_code
)
{
if
(
erasure_code
&&
!
ec_open_bucket
(
trans
->
c
,
ptrs
)
)
{
ret
=
__open_bucket_add_buckets
(
trans
,
ptrs
,
wp
,
devs_have
,
target
,
erasure_code
,
nr_replicas
,
nr_effective
,
have_cache
,
...
...
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