btrfs: fix csum assert to check objectid of the root
authorJosef Bacik <josef@toxicpanda.com>
Fri, 5 Nov 2021 20:45:46 +0000 (16:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:49 +0000 (15:09 +0100)
commit84d2d6c7016513f59d98da30da486af3f5244b04
tree11892757e2f20ca2d2af5c66a24ebc0a06e8ed3d
parent29cbcf401793f4e2c871c846edc2191731df2c41
btrfs: fix csum assert to check objectid of the root

In the future we may have multiple csum roots, so simply check the
objectid is for a csum root instead of checking against ->csum_root.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file-item.c