mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 05:31:17 -04: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:
committed by
Kent Overstreet
parent
9940a791ea
commit
05cf02b5a1
@@ -1249,7 +1249,8 @@ static int bch2_fiemap(struct inode *vinode, struct fiemap_extent_info *info,
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user