mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
bcachefs: Fix fiemap (again)
when iterating over reflink pointers, we use the key we just emitted to set the iterator position - which means we have to be setting the key's inode field as well Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
9940a791ea
commit
05cf02b5a1
1 changed files with 2 additions and 1 deletions
|
@ -1249,7 +1249,8 @@ retry:
|
|||
offset_into_extent),
|
||||
&cur.k);
|
||||
bch2_key_resize(&cur.k.k, sectors);
|
||||
cur.k.k.p.offset = iter->pos.offset + cur.k.k.size;
|
||||
cur.k.k.p = iter->pos;
|
||||
cur.k.k.p.offset += cur.k.k.size;
|
||||
|
||||
if (have_extent) {
|
||||
ret = bch2_fill_extent(c, info,
|
||||
|
|
Loading…
Add table
Reference in a new issue