summaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-03-25 16:50:33 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:01 -0400
commit593060d756e0c2382d59cf00d5f3b9e3a336c408 (patch)
treec102f8abd9210eeba8ae4e7f6626b80cfed1b8d8 /fs/btrfs/ctree.h
parent8a4b83cc8bd75fca29ac68615896d9e92820e7c2 (diff)
downloadlwn-593060d756e0c2382d59cf00d5f3b9e3a336c408.tar.gz
lwn-593060d756e0c2382d59cf00d5f3b9e3a336c408.zip
Btrfs: Implement raid0 when multiple devices are present
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 7556f8319c60..f43dfe7ffe6d 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -413,6 +413,7 @@ struct btrfs_csum_item {
#define BTRFS_BLOCK_GROUP_DATA (1 << 0)
#define BTRFS_BLOCK_GROUP_SYSTEM (1 << 1)
#define BTRFS_BLOCK_GROUP_METADATA (1 << 2)
+#define BTRFS_BLOCK_GROUP_RAID0 (1 << 3)
struct btrfs_block_group_item {
@@ -498,6 +499,8 @@ struct btrfs_fs_info {
u64 delalloc_bytes;
u64 last_alloc;
u64 last_data_alloc;
+ int extra_data_alloc_bits;
+ int extra_alloc_bits;
};
/*