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
b8adb833
Commit
b8adb833
authored
Jan 11, 2019
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: correctly initialize bch_extent_ptr
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
04c2c34f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
fs/bcachefs/alloc_foreground.c
fs/bcachefs/alloc_foreground.c
+1
-0
No files found.
fs/bcachefs/alloc_foreground.c
View file @
b8adb833
...
@@ -289,6 +289,7 @@ struct open_bucket *bch2_bucket_alloc(struct bch_fs *c, struct bch_dev *ca,
...
@@ -289,6 +289,7 @@ struct open_bucket *bch2_bucket_alloc(struct bch_fs *c, struct bch_dev *ca,
ob
->
valid
=
true
;
ob
->
valid
=
true
;
ob
->
sectors_free
=
ca
->
mi
.
bucket_size
;
ob
->
sectors_free
=
ca
->
mi
.
bucket_size
;
ob
->
ptr
=
(
struct
bch_extent_ptr
)
{
ob
->
ptr
=
(
struct
bch_extent_ptr
)
{
.
type
=
1
<<
BCH_EXTENT_ENTRY_ptr
,
.
gen
=
buckets
->
b
[
bucket
].
mark
.
gen
,
.
gen
=
buckets
->
b
[
bucket
].
mark
.
gen
,
.
offset
=
bucket_to_sector
(
ca
,
bucket
),
.
offset
=
bucket_to_sector
(
ca
,
bucket
),
.
dev
=
ca
->
dev_idx
,
.
dev
=
ca
->
dev_idx
,
...
...
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