aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-07 11:43:44 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:02 -0400
commita061fc8da7b990faa41ca503e66faef3ecdeead0 (patch)
tree0d3b5b6e4d2164d507d9a16d5b38d373592a5c8f /fs/btrfs/ctree.h
parent5d9cd9ecbf40b8bd5045a3c2f1feb35db6a12266 (diff)
Btrfs: Add support for online device removal
This required a few structural changes to the code that manages bdev pointers: The VFS super block now gets an anon-bdev instead of a pointer to the lowest bdev. This allows us to avoid swapping the super block bdev pointer around at run time. The code to read in the super block no longer goes through the extent buffer interface. Things got ugly keeping the mapping constant. 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, 2 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 3b6f8524a4ad..33ab165591c5 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -505,7 +505,7 @@ struct btrfs_fs_info {
505 u64 alloc_start; 505 u64 alloc_start;
506 struct btrfs_transaction *running_transaction; 506 struct btrfs_transaction *running_transaction;
507 struct btrfs_super_block super_copy; 507 struct btrfs_super_block super_copy;
508 struct extent_buffer *sb_buffer; 508 struct btrfs_super_block super_for_commit;
509 struct block_device *__bdev; 509 struct block_device *__bdev;
510 struct super_block *sb; 510 struct super_block *sb;
511 struct inode *btree_inode; 511 struct inode *btree_inode;
@@ -1208,6 +1208,7 @@ BTRFS_SETGET_STACK_FUNCS(root_limit, struct btrfs_root_item, byte_limit, 64);
1208 1208
1209/* struct btrfs_super_block */ 1209/* struct btrfs_super_block */
1210BTRFS_SETGET_STACK_FUNCS(super_bytenr, struct btrfs_super_block, bytenr, 64); 1210BTRFS_SETGET_STACK_FUNCS(super_bytenr, struct btrfs_super_block, bytenr, 64);
1211BTRFS_SETGET_STACK_FUNCS(super_flags, struct btrfs_super_block, flags, 64);
1211BTRFS_SETGET_STACK_FUNCS(super_generation, struct btrfs_super_block, 1212BTRFS_SETGET_STACK_FUNCS(super_generation, struct btrfs_super_block,
1212 generation, 64); 1213 generation, 64);
1213BTRFS_SETGET_STACK_FUNCS(super_root, struct btrfs_super_block, root, 64); 1214BTRFS_SETGET_STACK_FUNCS(super_root, struct btrfs_super_block, root, 64);