mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-28 16:32:43 +00:00
btrfs-progs: delete bogus zero checksum check
The check condition (csum_result == 0) does not make sense anymore as
it's not the buffer and not the crc32c result as it used to be. The
message does not bring any value and looks like it's some debugging aid
from the old times (added in 2008 as bb7055ec21
("Add some extra
debugging around file data checksum failures")).
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
e034d2bbaa
commit
6c53222add
@ -316,12 +316,6 @@ csum:
|
||||
csum_offset * csum_size);
|
||||
found:
|
||||
btrfs_csum_data(root->fs_info, csum_type, (u8 *)data, csum_result, len);
|
||||
/* FIXME: does not make sense for non-crc32c */
|
||||
if (csum_result == 0) {
|
||||
printk("csum result is 0 for block %llu\n",
|
||||
(unsigned long long)bytenr);
|
||||
}
|
||||
|
||||
write_extent_buffer(leaf, csum_result, (unsigned long)item,
|
||||
csum_size);
|
||||
btrfs_mark_buffer_dirty(path->nodes[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user