btrfs: avoid repetitive define BTRFS_FEATURE_INCOMPAT_SUPP
authorAnand Jain <anand.jain@oracle.com>
Mon, 6 Mar 2023 13:28:09 +0000 (21:28 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:16 +0000 (18:01 +0200)
commit0f202b256a141e6c94398dcf262d4abdf8dff978
tree71435f54338d21c9d498cf55f5bfc5014e47fa07
parent6b4d375a81551bec17854b51e13efb58b45c8a76
btrfs: avoid repetitive define BTRFS_FEATURE_INCOMPAT_SUPP

BTRFS_FEATURE_INCOMPAT_SUPP is defined twice, once under
CONFIG_BTRFS_DEBUG and once without it, resulting in repetitive code. The
reason for this is to add experimental features under CONFIG_BTRFS_DEBUG.

To avoid repetitive code, add a common list BTRFS_FEATURE_INCOMPAT_SUPP_STABLE,
and append experimental features only under CONFIG_BTRFS_DEBUG.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/fs.h