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
f38fe2dc
Commit
f38fe2dc
authored
Oct 12, 2019
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: Fix iterator counting for reflink pointers (again)
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
538abcb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
fs/bcachefs/extents.c
fs/bcachefs/extents.c
+2
-1
No files found.
fs/bcachefs/extents.c
View file @
f38fe2dc
...
...
@@ -959,7 +959,8 @@ static int count_iters_for_insert(struct btree_trans *trans,
case
KEY_TYPE_reflink_p
:
{
struct
bkey_s_c_reflink_p
p
=
bkey_s_c_to_reflink_p
(
k
);
u64
idx
=
le64_to_cpu
(
p
.
v
->
idx
);
unsigned
sectors
=
end
->
offset
-
bkey_start_offset
(
p
.
k
);
unsigned
sectors
=
bpos_min
(
*
end
,
p
.
k
->
p
).
offset
-
bkey_start_offset
(
p
.
k
);
struct
btree_iter
*
iter
;
struct
bkey_s_c
r_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