diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-03-24 15:02:07 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:01 -0400 |
commit | 0d81ba5dbedef0c3970d6aa318aa84920943e6e3 (patch) | |
tree | 2c5256b4a4e4d544add986e654db56e660f4fb12 /fs/btrfs/volumes.h | |
parent | e085def2c4cc2d7c0c316376b4b66b86b10e3a4b (diff) |
Btrfs: Move device information into the super block so it can be scanned
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index 4ab9891878a8..77fa6efd79cf 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h | |||
@@ -21,7 +21,6 @@ | |||
21 | struct btrfs_device { | 21 | struct btrfs_device { |
22 | struct list_head dev_list; | 22 | struct list_head dev_list; |
23 | struct btrfs_root *dev_root; | 23 | struct btrfs_root *dev_root; |
24 | struct btrfs_key dev_key; | ||
25 | 24 | ||
26 | struct block_device *bdev; | 25 | struct block_device *bdev; |
27 | 26 | ||
@@ -43,22 +42,11 @@ struct btrfs_device { | |||
43 | /* minimal io size for this device */ | 42 | /* minimal io size for this device */ |
44 | u32 sector_size; | 43 | u32 sector_size; |
45 | 44 | ||
46 | /* the kernel device number */ | ||
47 | u64 rdev; | ||
48 | |||
49 | /* type and info about this device */ | 45 | /* type and info about this device */ |
50 | u64 type; | 46 | u64 type; |
51 | 47 | ||
52 | /* partition number, 0 for whole dev */ | ||
53 | int partition; | ||
54 | |||
55 | /* length of the name data at the end of the item */ | ||
56 | int name_len; | ||
57 | |||
58 | /* physical drive uuid (or lvm uuid) */ | 48 | /* physical drive uuid (or lvm uuid) */ |
59 | u8 uuid[BTRFS_DEV_UUID_SIZE]; | 49 | u8 uuid[BTRFS_DEV_UUID_SIZE]; |
60 | |||
61 | char *name; | ||
62 | }; | 50 | }; |
63 | 51 | ||
64 | int btrfs_alloc_dev_extent(struct btrfs_trans_handle *trans, | 52 | int btrfs_alloc_dev_extent(struct btrfs_trans_handle *trans, |
@@ -75,4 +63,5 @@ int btrfs_alloc_chunk(struct btrfs_trans_handle *trans, | |||
75 | void btrfs_mapping_init(struct btrfs_mapping_tree *tree); | 63 | void btrfs_mapping_init(struct btrfs_mapping_tree *tree); |
76 | void btrfs_mapping_tree_free(struct btrfs_mapping_tree *tree); | 64 | void btrfs_mapping_tree_free(struct btrfs_mapping_tree *tree); |
77 | int btrfs_map_bio(struct btrfs_root *root, int rw, struct bio *bio); | 65 | int btrfs_map_bio(struct btrfs_root *root, int rw, struct bio *bio); |
66 | int btrfs_read_super_device(struct btrfs_root *root, struct extent_buffer *buf); | ||
78 | #endif | 67 | #endif |