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
db64a8e8
Commit
db64a8e8
authored
Mar 06, 2023
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup bcachefs: Use for_each_btree_key_upto() more consistently
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
4b5b13da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
fs/bcachefs/io.c
fs/bcachefs/io.c
+2
-1
No files found.
fs/bcachefs/io.c
View file @
db64a8e8
...
...
@@ -217,7 +217,8 @@ int bch2_sum_sector_overwrites(struct btree_trans *trans,
bch2_trans_copy_iter
(
&
iter
,
extent_iter
);
for_each_btree_key_continue_norestart
(
iter
,
BTREE_ITER_SLOTS
,
old
,
ret
)
{
for_each_btree_key_upto_continue_norestart
(
iter
,
new
->
k
.
p
,
BTREE_ITER_SLOTS
,
old
,
ret
)
{
s64
sectors
=
min
(
new
->
k
.
p
.
offset
,
old
.
k
->
p
.
offset
)
-
max
(
bkey_start_offset
(
&
new
->
k
),
bkey_start_offset
(
old
.
k
));
...
...
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