Message ID | 20f12498a1c9d97585235c336205dcf74b414d8f.1668526161.git.josef@toxicpanda.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs-progs: prep and initial sync of kernel code | expand |
diff --git a/cmds/rescue-chunk-recover.c b/cmds/rescue-chunk-recover.c index 460a7f2f..e6f2b80e 100644 --- a/cmds/rescue-chunk-recover.c +++ b/cmds/rescue-chunk-recover.c @@ -94,8 +94,7 @@ static struct extent_record *btrfs_new_extent_record(struct extent_buffer *eb) rec->cache.start = btrfs_header_bytenr(eb); rec->cache.size = eb->len; rec->generation = btrfs_header_generation(eb); - read_extent_buffer(eb, rec->csum, (unsigned long)btrfs_header_csum(eb), - BTRFS_CSUM_SIZE); + read_extent_buffer(eb, rec->csum, 0, BTRFS_CSUM_SIZE); return rec; }
This is a useless helper, the csum is always the first thing in the header, simply read from offset 0. Signed-off-by: Josef Bacik <josef@toxicpanda.com> --- cmds/rescue-chunk-recover.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)