]> 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)
commit6cbad3397a0c1752ff65665bf1b8d3e2be042d64
tree11892757e2f20ca2d2af5c66a24ebc0a06e8ed3d
parent6a24d48983a3684bc9a810bd0a42c940f42b7c13
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