]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite627a3dc73f9a7d4701c1b4c378c8d56bebe584f
tree11892757e2f20ca2d2af5c66a24ebc0a06e8ed3d
parenta2d0dc2f55262adfd44273eafb2197af018678d3
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