diff options
author | Nikolay Borisov <nborisov@suse.com> | 2019-03-25 13:31:26 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 19:02:36 +0200 |
commit | 930b09072977583226a05b4f2e1db259f9a2417b (patch) | |
tree | 00d02a4f3eee24f70b38c0fb2cc25dad03a7c4d8 /fs/btrfs/extent_io.h | |
parent | btrfs: Populate ->orig_block_len during read_one_chunk (diff) | |
download | linux-930b09072977583226a05b4f2e1db259f9a2417b.tar.xz linux-930b09072977583226a05b4f2e1db259f9a2417b.zip |
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 <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |