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
41fcd621
Commit
41fcd621
authored
Aug 21, 2019
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: Fix faulty assertion
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
f698a957
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
fs/bcachefs/buckets.c
fs/bcachefs/buckets.c
+6
-2
No files found.
fs/bcachefs/buckets.c
View file @
41fcd621
...
...
@@ -1483,8 +1483,6 @@ static int bch2_trans_mark_stripe_ptr(struct btree_trans *trans,
s64
parity_sectors
;
int
ret
=
0
;
BUG_ON
(
!
sectors
);
ret
=
trans_get_key
(
trans
,
BTREE_ID_EC
,
POS
(
0
,
p
.
idx
),
&
iter
,
&
k
);
if
(
ret
)
return
ret
;
...
...
@@ -1549,6 +1547,12 @@ static int bch2_trans_mark_extent(struct btree_trans *trans,
?
sectors
:
ptr_disk_sectors_delta
(
p
,
offset
,
sectors
,
flags
);
/*
* can happen due to rounding with compressed extents:
*/
if
(
!
disk_sectors
)
continue
;
ret
=
bch2_trans_mark_pointer
(
trans
,
p
,
disk_sectors
,
data_type
);
if
(
ret
<
0
)
...
...
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