]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove V0 extent support
authorNikolay Borisov <nborisov@suse.com>
Thu, 21 Jun 2018 06:45:00 +0000 (09:45 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:41 +0000 (13:12 +0200)
commitebbb957d189d331bf1dc9f62ece06fd9db0f4591
tree9763ea39fbf0f51cb2e114bb29557ab055d53ba1
parent5e012f0f7327ca598f9cfae7679abc05c59c5c88
btrfs: Remove V0 extent support

The v0 compat code was introduced in commit 729696c235d1
("Btrfs: Mixed back reference  (FORWARD ROLLING FORMAT CHANGE)") 9
years ago, which was merged in 2.6.31. This means that the code is
there to support filesystems which are _VERY_ old and if you are using
btrfs on such an old kernel, you have much bigger problems. This coupled
with the fact that no one is likely testing/maintining this code likely
means it has bugs lurking. All things considered I think 43 kernel
releases later it's high time this remnant of the past got removed.

This patch removes all code wrapped in #ifdefs but leaves the BUG_ONs in case
we have a v0 with no support intact as a sort of safety-net.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/print-tree.c
fs/btrfs/relocation.c