Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a3212d commit 560840aCopy full SHA for 560840a
fs/btrfs/backref.c
@@ -484,6 +484,7 @@ static int add_all_parents(struct btrfs_backref_walk_ctx *ctx,
484
u64 wanted_disk_byte = ref->wanted_disk_byte;
485
u64 count = 0;
486
u64 data_offset;
487
+ u8 type;
488
489
if (level != 0) {
490
eb = path->nodes[level];
@@ -538,6 +539,9 @@ static int add_all_parents(struct btrfs_backref_walk_ctx *ctx,
538
539
continue;
540
}
541
fi = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item);
542
+ type = btrfs_file_extent_type(eb, fi);
543
+ if (type == BTRFS_FILE_EXTENT_INLINE)
544
+ goto next;
545
disk_byte = btrfs_file_extent_disk_bytenr(eb, fi);
546
data_offset = btrfs_file_extent_offset(eb, fi);
547
0 commit comments