mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 07:04:44 +00:00
bcachefs: Fix iterator counting for reflink pointers (again)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
538abcb8a1
commit
f38fe2dc5d
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue