Skip to content

Commit

Permalink
btrfs: Introduce new bits for device allocation tree
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nikolay Borisov authored and David Sterba committed Apr 29, 2019
1 parent 39e264a commit 930b090
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/btrfs/extent_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 930b090

Please sign in to comment.