diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-04-03 16:29:03 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:01 -0400 |
commit | 8790d502e4401a4a3a4175b83a3a47e8d595c771 (patch) | |
tree | 7e01c053d6a99c3c2a6fb71a7338b083e953f0b3 /fs/btrfs/ctree.h | |
parent | 0ef8b2428a339e83fe225e82ef8bd0ea3f62b180 (diff) |
Btrfs: Add support for mirroring across drives
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 67d533cf8f47..0a207861472e 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -418,6 +418,7 @@ struct btrfs_csum_item { | |||
418 | #define BTRFS_BLOCK_GROUP_SYSTEM (1 << 1) | 418 | #define BTRFS_BLOCK_GROUP_SYSTEM (1 << 1) |
419 | #define BTRFS_BLOCK_GROUP_METADATA (1 << 2) | 419 | #define BTRFS_BLOCK_GROUP_METADATA (1 << 2) |
420 | #define BTRFS_BLOCK_GROUP_RAID0 (1 << 3) | 420 | #define BTRFS_BLOCK_GROUP_RAID0 (1 << 3) |
421 | #define BTRFS_BLOCK_GROUP_RAID1 (1 << 4) | ||
421 | 422 | ||
422 | 423 | ||
423 | struct btrfs_block_group_item { | 424 | struct btrfs_block_group_item { |
@@ -504,8 +505,12 @@ struct btrfs_fs_info { | |||
504 | u64 delalloc_bytes; | 505 | u64 delalloc_bytes; |
505 | u64 last_alloc; | 506 | u64 last_alloc; |
506 | u64 last_data_alloc; | 507 | u64 last_data_alloc; |
507 | int extra_data_alloc_bits; | 508 | int avail_data_alloc_bits; |
508 | int extra_alloc_bits; | 509 | int avail_metadata_alloc_bits; |
510 | int avail_system_alloc_bits; | ||
511 | int data_alloc_profile; | ||
512 | int metadata_alloc_profile; | ||
513 | int system_alloc_profile; | ||
509 | }; | 514 | }; |
510 | 515 | ||
511 | /* | 516 | /* |