summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason2007-11-30 17:30:34 +0100
committerChris Mason2008-09-25 17:03:58 +0200
commit87ee04eb0f2f0c63314cef4a76bd1adac748425e (patch)
tree2be6218d1d94ec92230be8df8e215691ecd5065d /fs/btrfs/ctree.h
parentbtrfs_drop_extents: make sure the item is getting smaller before truncate (diff)
downloadkernel-qcow2-linux-87ee04eb0f2f0c63314cef4a76bd1adac748425e.tar.gz
kernel-qcow2-linux-87ee04eb0f2f0c63314cef4a76bd1adac748425e.tar.xz
kernel-qcow2-linux-87ee04eb0f2f0c63314cef4a76bd1adac748425e.zip
Btrfs: Add simple stripe size parameter
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index b29b911dd825..9bc1b0a8615f 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -135,6 +135,7 @@ struct btrfs_super_block {
__le32 sectorsize;
__le32 nodesize;
__le32 leafsize;
+ __le32 stripesize;
u8 root_level;
} __attribute__ ((__packed__));
@@ -353,6 +354,8 @@ struct btrfs_root {
/* leaf allocations are done in leafsize units */
u32 leafsize;
+ u32 stripesize;
+
u32 type;
u64 highest_inode;
u64 last_inode_alloc;
@@ -776,6 +779,8 @@ BTRFS_SETGET_STACK_FUNCS(super_nodesize, struct btrfs_super_block,
nodesize, 32);
BTRFS_SETGET_STACK_FUNCS(super_leafsize, struct btrfs_super_block,
leafsize, 32);
+BTRFS_SETGET_STACK_FUNCS(super_stripesize, struct btrfs_super_block,
+ stripesize, 32);
BTRFS_SETGET_STACK_FUNCS(super_root_dir, struct btrfs_super_block,
root_dir_objectid, 64);