From: Nikolay Borisov Date: Mon, 25 Mar 2019 12:31:26 +0000 (+0200) Subject: btrfs: Introduce new bits for device allocation tree X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=930b09072977583226a05b4f2e1db259f9a2417b;p=openwrt%2Fstaging%2Fblogic.git btrfs: Introduce new bits for device allocation tree Rather than hijacking the existing defines let's just define new bits, with more descriptive names. Instead of using yet more (currently at 18) bits for the new flags, use the fact those flags will be specific to the device allocation tree so define them using existing EXTENT_* flags. Signed-off-by: Nikolay Borisov Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 722dc7d1b674..71213438db3a 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -27,6 +27,9 @@ EXTENT_CLEAR_DATA_RESV) #define EXTENT_CTLBITS (EXTENT_DO_ACCOUNTING) +/* Redefined bits above which are used only in the device allocation tree */ +#define CHUNK_ALLOCATED EXTENT_DIRTY + /* * flags for bio submission. The high bits indicate the compression * type for this bio