summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/send.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2020-09-22 04:37:01 +0200
committerDavid Sterba <dsterba@suse.com>2020-10-07 12:13:23 +0200
commit1465af12e254a68706e110846f59cf0f09683184 (patch)
tree1720a50ff0d674e104c28f5653194c20f65855dd /fs/btrfs/send.c
parentbtrfs: use unaligned helpers for stack and header set/get helpers (diff)
downloadlinux-1465af12e254a68706e110846f59cf0f09683184.tar.xz
linux-1465af12e254a68706e110846f59cf0f09683184.zip
btrfs: tree-checker: fix false alert caused by legacy btrfs root item
Commit 259ee7754b67 ("btrfs: tree-checker: Add ROOT_ITEM check") introduced btrfs root item size check, however btrfs root item has two versions, the legacy one which just ends before generation_v2 member, is smaller than current btrfs root item size. This caused btrfs kernel to reject valid but old tree root leaves. Fix this problem by also allowing legacy root item, since kernel can already handle them pretty well and upgrade to newer root item format when needed. Reported-by: Martin Steigerwald <martin@lichtvoll.de> Fixes: 259ee7754b67 ("btrfs: tree-checker: Add ROOT_ITEM check") CC: stable@vger.kernel.org # 5.4+ Tested-By: Martin Steigerwald <martin@lichtvoll.de> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/send.c')
0 files changed, 0 insertions, 0 deletions