aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exofs
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2011-09-28 04:39:59 -0400
committerBoaz Harrosh <bharrosh@panasas.com>2011-10-03 11:07:50 -0400
commit5bf696dad4beecb6174e701c97e1f2574e6a2c96 (patch)
treeb4cfd7e00a61310aaf5ac90e670c840184fc115d /fs/exofs
parentde74b05ace743b4a7aefad9e9b33ff899979b34a (diff)
exofs: Rename struct ore_components comps => oc
ore_components already has a comps member so this leads to things like comps->comps which is annoying. the name oc was already used in new code. So rename all old usage of ore_components comps => ore_components oc. Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Diffstat (limited to 'fs/exofs')
-rw-r--r--fs/exofs/exofs.h16
-rw-r--r--fs/exofs/inode.c22
-rw-r--r--fs/exofs/ore.c30
-rw-r--r--fs/exofs/super.c58
4 files changed, 63 insertions, 63 deletions
diff --git a/fs/exofs/exofs.h b/fs/exofs/exofs.h
index f4e442ec7445..c09d5a765efe 100644
--- a/fs/exofs/exofs.h
+++ b/fs/exofs/exofs.h
@@ -71,7 +71,7 @@ struct exofs_sb_info {
71 */ 71 */
72 struct ore_layout layout; /* Default files layout */ 72 struct ore_layout layout; /* Default files layout */
73 struct ore_comp one_comp; /* id & cred of partition id=0*/ 73 struct ore_comp one_comp; /* id & cred of partition id=0*/
74 struct ore_components comps; /* comps for the partition */ 74 struct ore_components oc; /* comps for the partition */
75 struct osd_dev *_min_one_dev[1]; /* Place holder for one dev */ 75 struct osd_dev *_min_one_dev[1]; /* Place holder for one dev */
76}; 76};
77 77
@@ -86,7 +86,7 @@ struct exofs_i_info {
86 uint32_t i_dir_start_lookup; /* which page to start lookup */ 86 uint32_t i_dir_start_lookup; /* which page to start lookup */
87 uint64_t i_commit_size; /* the object's written length */ 87 uint64_t i_commit_size; /* the object's written length */
88 struct ore_comp one_comp; /* same component for all devices */ 88 struct ore_comp one_comp; /* same component for all devices */
89 struct ore_components comps; /* inode view of the device table */ 89 struct ore_components oc; /* inode view of the device table */
90}; 90};
91 91
92static inline osd_id exofs_oi_objno(struct exofs_i_info *oi) 92static inline osd_id exofs_oi_objno(struct exofs_i_info *oi)
@@ -207,7 +207,7 @@ extern const struct inode_operations exofs_fast_symlink_inode_operations;
207 * bigger and that the device table repeats twice. 207 * bigger and that the device table repeats twice.
208 * See: exofs_read_lookup_dev_table() 208 * See: exofs_read_lookup_dev_table()
209 */ 209 */
210static inline void exofs_init_comps(struct ore_components *comps, 210static inline void exofs_init_comps(struct ore_components *oc,
211 struct ore_comp *one_comp, 211 struct ore_comp *one_comp,
212 struct exofs_sb_info *sbi, osd_id oid) 212 struct exofs_sb_info *sbi, osd_id oid)
213{ 213{
@@ -217,13 +217,13 @@ static inline void exofs_init_comps(struct ore_components *comps,
217 one_comp->obj.id = oid; 217 one_comp->obj.id = oid;
218 exofs_make_credential(one_comp->cred, &one_comp->obj); 218 exofs_make_credential(one_comp->cred, &one_comp->obj);
219 219
220 comps->numdevs = sbi->comps.numdevs; 220 oc->numdevs = sbi->oc.numdevs;
221 comps->single_comp = EC_SINGLE_COMP; 221 oc->single_comp = EC_SINGLE_COMP;
222 comps->comps = one_comp; 222 oc->comps = one_comp;
223 223
224 /* Round robin device view of the table */ 224 /* Round robin device view of the table */
225 first_dev = (dev_mod * sbi->layout.mirrors_p1) % sbi->comps.numdevs; 225 first_dev = (dev_mod * sbi->layout.mirrors_p1) % sbi->oc.numdevs;
226 comps->ods = sbi->comps.ods + first_dev; 226 oc->ods = sbi->oc.ods + first_dev;
227} 227}
228 228
229#endif 229#endif
diff --git a/fs/exofs/inode.c b/fs/exofs/inode.c
index f39a38fc2349..61b2f7e5cdbd 100644
--- a/fs/exofs/inode.c
+++ b/fs/exofs/inode.c
@@ -270,7 +270,7 @@ static int read_exec(struct page_collect *pcol)
270 return 0; 270 return 0;
271 271
272 if (!pcol->ios) { 272 if (!pcol->ios) {
273 int ret = ore_get_rw_state(&pcol->sbi->layout, &oi->comps, true, 273 int ret = ore_get_rw_state(&pcol->sbi->layout, &oi->oc, true,
274 pcol->pg_first << PAGE_CACHE_SHIFT, 274 pcol->pg_first << PAGE_CACHE_SHIFT,
275 pcol->length, &pcol->ios); 275 pcol->length, &pcol->ios);
276 276
@@ -516,7 +516,7 @@ static int write_exec(struct page_collect *pcol)
516 return 0; 516 return 0;
517 517
518 BUG_ON(pcol->ios); 518 BUG_ON(pcol->ios);
519 ret = ore_get_rw_state(&pcol->sbi->layout, &oi->comps, false, 519 ret = ore_get_rw_state(&pcol->sbi->layout, &oi->oc, false,
520 pcol->pg_first << PAGE_CACHE_SHIFT, 520 pcol->pg_first << PAGE_CACHE_SHIFT,
521 pcol->length, &pcol->ios); 521 pcol->length, &pcol->ios);
522 522
@@ -860,7 +860,7 @@ static int _do_truncate(struct inode *inode, loff_t newsize)
860 860
861 inode->i_mtime = inode->i_ctime = CURRENT_TIME; 861 inode->i_mtime = inode->i_ctime = CURRENT_TIME;
862 862
863 ret = ore_truncate(&sbi->layout, &oi->comps, (u64)newsize); 863 ret = ore_truncate(&sbi->layout, &oi->oc, (u64)newsize);
864 if (likely(!ret)) 864 if (likely(!ret))
865 truncate_setsize(inode, newsize); 865 truncate_setsize(inode, newsize);
866 866
@@ -927,14 +927,14 @@ static int exofs_get_inode(struct super_block *sb, struct exofs_i_info *oi,
927 struct exofs_on_disk_inode_layout *layout; 927 struct exofs_on_disk_inode_layout *layout;
928 int ret; 928 int ret;
929 929
930 ret = ore_get_io_state(&sbi->layout, &oi->comps, &ios); 930 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios);
931 if (unlikely(ret)) { 931 if (unlikely(ret)) {
932 EXOFS_ERR("%s: ore_get_io_state failed.\n", __func__); 932 EXOFS_ERR("%s: ore_get_io_state failed.\n", __func__);
933 return ret; 933 return ret;
934 } 934 }
935 935
936 attrs[1].len = exofs_on_disk_inode_layout_size(sbi->comps.numdevs); 936 attrs[1].len = exofs_on_disk_inode_layout_size(sbi->oc.numdevs);
937 attrs[2].len = exofs_on_disk_inode_layout_size(sbi->comps.numdevs); 937 attrs[2].len = exofs_on_disk_inode_layout_size(sbi->oc.numdevs);
938 938
939 ios->in_attr = attrs; 939 ios->in_attr = attrs;
940 ios->in_attr_len = ARRAY_SIZE(attrs); 940 ios->in_attr_len = ARRAY_SIZE(attrs);
@@ -1018,7 +1018,7 @@ struct inode *exofs_iget(struct super_block *sb, unsigned long ino)
1018 return inode; 1018 return inode;
1019 oi = exofs_i(inode); 1019 oi = exofs_i(inode);
1020 __oi_init(oi); 1020 __oi_init(oi);
1021 exofs_init_comps(&oi->comps, &oi->one_comp, sb->s_fs_info, 1021 exofs_init_comps(&oi->oc, &oi->one_comp, sb->s_fs_info,
1022 exofs_oi_objno(oi)); 1022 exofs_oi_objno(oi));
1023 1023
1024 /* read the inode from the osd */ 1024 /* read the inode from the osd */
@@ -1172,13 +1172,13 @@ struct inode *exofs_new_inode(struct inode *dir, int mode)
1172 spin_unlock(&sbi->s_next_gen_lock); 1172 spin_unlock(&sbi->s_next_gen_lock);
1173 insert_inode_hash(inode); 1173 insert_inode_hash(inode);
1174 1174
1175 exofs_init_comps(&oi->comps, &oi->one_comp, sb->s_fs_info, 1175 exofs_init_comps(&oi->oc, &oi->one_comp, sb->s_fs_info,
1176 exofs_oi_objno(oi)); 1176 exofs_oi_objno(oi));
1177 exofs_sbi_write_stats(sbi); /* Make sure new sbi->s_nextid is on disk */ 1177 exofs_sbi_write_stats(sbi); /* Make sure new sbi->s_nextid is on disk */
1178 1178
1179 mark_inode_dirty(inode); 1179 mark_inode_dirty(inode);
1180 1180
1181 ret = ore_get_io_state(&sbi->layout, &oi->comps, &ios); 1181 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios);
1182 if (unlikely(ret)) { 1182 if (unlikely(ret)) {
1183 EXOFS_ERR("exofs_new_inode: ore_get_io_state failed\n"); 1183 EXOFS_ERR("exofs_new_inode: ore_get_io_state failed\n");
1184 return ERR_PTR(ret); 1184 return ERR_PTR(ret);
@@ -1267,7 +1267,7 @@ static int exofs_update_inode(struct inode *inode, int do_sync)
1267 } else 1267 } else
1268 memcpy(fcb->i_data, oi->i_data, sizeof(fcb->i_data)); 1268 memcpy(fcb->i_data, oi->i_data, sizeof(fcb->i_data));
1269 1269
1270 ret = ore_get_io_state(&sbi->layout, &oi->comps, &ios); 1270 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios);
1271 if (unlikely(ret)) { 1271 if (unlikely(ret)) {
1272 EXOFS_ERR("%s: ore_get_io_state failed.\n", __func__); 1272 EXOFS_ERR("%s: ore_get_io_state failed.\n", __func__);
1273 goto free_args; 1273 goto free_args;
@@ -1350,7 +1350,7 @@ void exofs_evict_inode(struct inode *inode)
1350 /* ignore the error, attempt a remove anyway */ 1350 /* ignore the error, attempt a remove anyway */
1351 1351
1352 /* Now Remove the OSD objects */ 1352 /* Now Remove the OSD objects */
1353 ret = ore_get_io_state(&sbi->layout, &oi->comps, &ios); 1353 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios);
1354 if (unlikely(ret)) { 1354 if (unlikely(ret)) {
1355 EXOFS_ERR("%s: ore_get_io_state failed\n", __func__); 1355 EXOFS_ERR("%s: ore_get_io_state failed\n", __func__);
1356 return; 1356 return;
diff --git a/fs/exofs/ore.c b/fs/exofs/ore.c
index 6114fdffcad8..870f85a232d1 100644
--- a/fs/exofs/ore.c
+++ b/fs/exofs/ore.c
@@ -49,20 +49,20 @@ MODULE_LICENSE("GPL");
49 49
50static u8 *_ios_cred(struct ore_io_state *ios, unsigned index) 50static u8 *_ios_cred(struct ore_io_state *ios, unsigned index)
51{ 51{
52 return ios->comps->comps[index & ios->comps->single_comp].cred; 52 return ios->oc->comps[index & ios->oc->single_comp].cred;
53} 53}
54 54
55static struct osd_obj_id *_ios_obj(struct ore_io_state *ios, unsigned index) 55static struct osd_obj_id *_ios_obj(struct ore_io_state *ios, unsigned index)
56{ 56{
57 return &ios->comps->comps[index & ios->comps->single_comp].obj; 57 return &ios->oc->comps[index & ios->oc->single_comp].obj;
58} 58}
59 59
60static struct osd_dev *_ios_od(struct ore_io_state *ios, unsigned index) 60static struct osd_dev *_ios_od(struct ore_io_state *ios, unsigned index)
61{ 61{
62 return ios->comps->ods[index]; 62 return ios->oc->ods[index];
63} 63}
64 64
65int ore_get_rw_state(struct ore_layout *layout, struct ore_components *comps, 65int ore_get_rw_state(struct ore_layout *layout, struct ore_components *oc,
66 bool is_reading, u64 offset, u64 length, 66 bool is_reading, u64 offset, u64 length,
67 struct ore_io_state **pios) 67 struct ore_io_state **pios)
68{ 68{
@@ -71,16 +71,16 @@ int ore_get_rw_state(struct ore_layout *layout, struct ore_components *comps,
71 /*TODO: Maybe use kmem_cach per sbi of size 71 /*TODO: Maybe use kmem_cach per sbi of size
72 * exofs_io_state_size(layout->s_numdevs) 72 * exofs_io_state_size(layout->s_numdevs)
73 */ 73 */
74 ios = kzalloc(ore_io_state_size(comps->numdevs), GFP_KERNEL); 74 ios = kzalloc(ore_io_state_size(oc->numdevs), GFP_KERNEL);
75 if (unlikely(!ios)) { 75 if (unlikely(!ios)) {
76 ORE_DBGMSG("Failed kzalloc bytes=%d\n", 76 ORE_DBGMSG("Failed kzalloc bytes=%d\n",
77 ore_io_state_size(comps->numdevs)); 77 ore_io_state_size(oc->numdevs));
78 *pios = NULL; 78 *pios = NULL;
79 return -ENOMEM; 79 return -ENOMEM;
80 } 80 }
81 81
82 ios->layout = layout; 82 ios->layout = layout;
83 ios->comps = comps; 83 ios->oc = oc;
84 ios->offset = offset; 84 ios->offset = offset;
85 ios->length = length; 85 ios->length = length;
86 ios->reading = is_reading; 86 ios->reading = is_reading;
@@ -90,10 +90,10 @@ int ore_get_rw_state(struct ore_layout *layout, struct ore_components *comps,
90} 90}
91EXPORT_SYMBOL(ore_get_rw_state); 91EXPORT_SYMBOL(ore_get_rw_state);
92 92
93int ore_get_io_state(struct ore_layout *layout, struct ore_components *comps, 93int ore_get_io_state(struct ore_layout *layout, struct ore_components *oc,
94 struct ore_io_state **ios) 94 struct ore_io_state **ios)
95{ 95{
96 return ore_get_rw_state(layout, comps, true, 0, 0, ios); 96 return ore_get_rw_state(layout, oc, true, 0, 0, ios);
97} 97}
98EXPORT_SYMBOL(ore_get_io_state); 98EXPORT_SYMBOL(ore_get_io_state);
99 99
@@ -476,7 +476,7 @@ int ore_create(struct ore_io_state *ios)
476{ 476{
477 int i, ret; 477 int i, ret;
478 478
479 for (i = 0; i < ios->comps->numdevs; i++) { 479 for (i = 0; i < ios->oc->numdevs; i++) {
480 struct osd_request *or; 480 struct osd_request *or;
481 481
482 or = osd_start_request(_ios_od(ios, i), GFP_KERNEL); 482 or = osd_start_request(_ios_od(ios, i), GFP_KERNEL);
@@ -501,7 +501,7 @@ int ore_remove(struct ore_io_state *ios)
501{ 501{
502 int i, ret; 502 int i, ret;
503 503
504 for (i = 0; i < ios->comps->numdevs; i++) { 504 for (i = 0; i < ios->oc->numdevs; i++) {
505 struct osd_request *or; 505 struct osd_request *or;
506 506
507 or = osd_start_request(_ios_od(ios, i), GFP_KERNEL); 507 or = osd_start_request(_ios_od(ios, i), GFP_KERNEL);
@@ -768,7 +768,7 @@ static void _calc_trunk_info(struct ore_layout *layout, u64 file_offset,
768 ti->max_devs = layout->group_width * layout->group_count; 768 ti->max_devs = layout->group_width * layout->group_count;
769} 769}
770 770
771int ore_truncate(struct ore_layout *layout, struct ore_components *comps, 771int ore_truncate(struct ore_layout *layout, struct ore_components *oc,
772 u64 size) 772 u64 size)
773{ 773{
774 struct ore_io_state *ios; 774 struct ore_io_state *ios;
@@ -779,7 +779,7 @@ int ore_truncate(struct ore_layout *layout, struct ore_components *comps,
779 struct _trunc_info ti; 779 struct _trunc_info ti;
780 int i, ret; 780 int i, ret;
781 781
782 ret = ore_get_io_state(layout, comps, &ios); 782 ret = ore_get_io_state(layout, oc, &ios);
783 if (unlikely(ret)) 783 if (unlikely(ret))
784 return ret; 784 return ret;
785 785
@@ -792,7 +792,7 @@ int ore_truncate(struct ore_layout *layout, struct ore_components *comps,
792 goto out; 792 goto out;
793 } 793 }
794 794
795 ios->numdevs = ios->comps->numdevs; 795 ios->numdevs = ios->oc->numdevs;
796 796
797 for (i = 0; i < ti.max_devs; ++i) { 797 for (i = 0; i < ti.max_devs; ++i) {
798 struct exofs_trunc_attr *size_attr = &size_attrs[i]; 798 struct exofs_trunc_attr *size_attr = &size_attrs[i];
@@ -815,7 +815,7 @@ int ore_truncate(struct ore_layout *layout, struct ore_components *comps,
815 size_attr->attr.val_ptr = &size_attr->newsize; 815 size_attr->attr.val_ptr = &size_attr->newsize;
816 816
817 ORE_DBGMSG("trunc(0x%llx) obj_offset=0x%llx dev=%d\n", 817 ORE_DBGMSG("trunc(0x%llx) obj_offset=0x%llx dev=%d\n",
818 _LLU(comps->comps->obj.id), _LLU(obj_size), i); 818 _LLU(oc->comps->obj.id), _LLU(obj_size), i);
819 ret = _truncate_mirrors(ios, i * ios->layout->mirrors_p1, 819 ret = _truncate_mirrors(ios, i * ios->layout->mirrors_p1,
820 &size_attr->attr); 820 &size_attr->attr);
821 if (unlikely(ret)) 821 if (unlikely(ret))
diff --git a/fs/exofs/super.c b/fs/exofs/super.c
index afe79ee088ad..babb1958f6f0 100644
--- a/fs/exofs/super.c
+++ b/fs/exofs/super.c
@@ -266,7 +266,7 @@ static int __sbi_read_stats(struct exofs_sb_info *sbi)
266 struct ore_io_state *ios; 266 struct ore_io_state *ios;
267 int ret; 267 int ret;
268 268
269 ret = ore_get_io_state(&sbi->layout, &sbi->comps, &ios); 269 ret = ore_get_io_state(&sbi->layout, &sbi->oc, &ios);
270 if (unlikely(ret)) { 270 if (unlikely(ret)) {
271 EXOFS_ERR("%s: ore_get_io_state failed.\n", __func__); 271 EXOFS_ERR("%s: ore_get_io_state failed.\n", __func__);
272 return ret; 272 return ret;
@@ -321,7 +321,7 @@ int exofs_sbi_write_stats(struct exofs_sb_info *sbi)
321 struct ore_io_state *ios; 321 struct ore_io_state *ios;
322 int ret; 322 int ret;
323 323
324 ret = ore_get_io_state(&sbi->layout, &sbi->comps, &ios); 324 ret = ore_get_io_state(&sbi->layout, &sbi->oc, &ios);
325 if (unlikely(ret)) { 325 if (unlikely(ret)) {
326 EXOFS_ERR("%s: ore_get_io_state failed.\n", __func__); 326 EXOFS_ERR("%s: ore_get_io_state failed.\n", __func__);
327 return ret; 327 return ret;
@@ -360,7 +360,7 @@ static int exofs_sync_fs(struct super_block *sb, int wait)
360 struct exofs_sb_info *sbi; 360 struct exofs_sb_info *sbi;
361 struct exofs_fscb *fscb; 361 struct exofs_fscb *fscb;
362 struct ore_comp one_comp; 362 struct ore_comp one_comp;
363 struct ore_components comps; 363 struct ore_components oc;
364 struct ore_io_state *ios; 364 struct ore_io_state *ios;
365 int ret = -ENOMEM; 365 int ret = -ENOMEM;
366 366
@@ -378,9 +378,9 @@ static int exofs_sync_fs(struct super_block *sb, int wait)
378 * the writeable info is set in exofs_sbi_write_stats() above. 378 * the writeable info is set in exofs_sbi_write_stats() above.
379 */ 379 */
380 380
381 exofs_init_comps(&comps, &one_comp, sbi, EXOFS_SUPER_ID); 381 exofs_init_comps(&oc, &one_comp, sbi, EXOFS_SUPER_ID);
382 382
383 ret = ore_get_io_state(&sbi->layout, &comps, &ios); 383 ret = ore_get_io_state(&sbi->layout, &oc, &ios);
384 if (unlikely(ret)) 384 if (unlikely(ret))
385 goto out; 385 goto out;
386 386
@@ -431,17 +431,17 @@ static void _exofs_print_device(const char *msg, const char *dev_path,
431 431
432static void exofs_free_sbi(struct exofs_sb_info *sbi) 432static void exofs_free_sbi(struct exofs_sb_info *sbi)
433{ 433{
434 while (sbi->comps.numdevs) { 434 while (sbi->oc.numdevs) {
435 int i = --sbi->comps.numdevs; 435 int i = --sbi->oc.numdevs;
436 struct osd_dev *od = sbi->comps.ods[i]; 436 struct osd_dev *od = sbi->oc.ods[i];
437 437
438 if (od) { 438 if (od) {
439 sbi->comps.ods[i] = NULL; 439 sbi->oc.ods[i] = NULL;
440 osduld_put_device(od); 440 osduld_put_device(od);
441 } 441 }
442 } 442 }
443 if (sbi->comps.ods != sbi->_min_one_dev) 443 if (sbi->oc.ods != sbi->_min_one_dev)
444 kfree(sbi->comps.ods); 444 kfree(sbi->oc.ods);
445 kfree(sbi); 445 kfree(sbi);
446} 446}
447 447
@@ -468,7 +468,7 @@ static void exofs_put_super(struct super_block *sb)
468 msecs_to_jiffies(100)); 468 msecs_to_jiffies(100));
469 } 469 }
470 470
471 _exofs_print_device("Unmounting", NULL, sbi->comps.ods[0], 471 _exofs_print_device("Unmounting", NULL, sbi->oc.ods[0],
472 sbi->one_comp.obj.partition); 472 sbi->one_comp.obj.partition);
473 473
474 bdi_destroy(&sbi->bdi); 474 bdi_destroy(&sbi->bdi);
@@ -623,7 +623,7 @@ static int exofs_read_lookup_dev_table(struct exofs_sb_info *sbi,
623 return -ENOMEM; 623 return -ENOMEM;
624 } 624 }
625 625
626 sbi->comps.numdevs = 0; 626 sbi->oc.numdevs = 0;
627 627
628 comp.obj.partition = sbi->one_comp.obj.partition; 628 comp.obj.partition = sbi->one_comp.obj.partition;
629 comp.obj.id = EXOFS_DEVTABLE_ID; 629 comp.obj.id = EXOFS_DEVTABLE_ID;
@@ -648,13 +648,13 @@ static int exofs_read_lookup_dev_table(struct exofs_sb_info *sbi,
648 goto out; 648 goto out;
649 649
650 if (likely(numdevs > 1)) { 650 if (likely(numdevs > 1)) {
651 unsigned size = numdevs * sizeof(sbi->comps.ods[0]); 651 unsigned size = numdevs * sizeof(sbi->oc.ods[0]);
652 652
653 /* Twice bigger table: See exofs_init_comps() and below 653 /* Twice bigger table: See exofs_init_comps() and below
654 * comment 654 * comment
655 */ 655 */
656 sbi->comps.ods = kzalloc(size + size - 1, GFP_KERNEL); 656 sbi->oc.ods = kzalloc(size + size - 1, GFP_KERNEL);
657 if (unlikely(!sbi->comps.ods)) { 657 if (unlikely(!sbi->oc.ods)) {
658 EXOFS_ERR("ERROR: faild allocating Device array[%d]\n", 658 EXOFS_ERR("ERROR: faild allocating Device array[%d]\n",
659 numdevs); 659 numdevs);
660 ret = -ENOMEM; 660 ret = -ENOMEM;
@@ -681,8 +681,8 @@ static int exofs_read_lookup_dev_table(struct exofs_sb_info *sbi,
681 * line. We always keep them in device-table order. 681 * line. We always keep them in device-table order.
682 */ 682 */
683 if (fscb_od && osduld_device_same(fscb_od, &odi)) { 683 if (fscb_od && osduld_device_same(fscb_od, &odi)) {
684 sbi->comps.ods[i] = fscb_od; 684 sbi->oc.ods[i] = fscb_od;
685 ++sbi->comps.numdevs; 685 ++sbi->oc.numdevs;
686 fscb_od = NULL; 686 fscb_od = NULL;
687 continue; 687 continue;
688 } 688 }
@@ -695,8 +695,8 @@ static int exofs_read_lookup_dev_table(struct exofs_sb_info *sbi,
695 goto out; 695 goto out;
696 } 696 }
697 697
698 sbi->comps.ods[i] = od; 698 sbi->oc.ods[i] = od;
699 ++sbi->comps.numdevs; 699 ++sbi->oc.numdevs;
700 700
701 /* Read the fscb of the other devices to make sure the FS 701 /* Read the fscb of the other devices to make sure the FS
702 * partition is there. 702 * partition is there.
@@ -719,7 +719,7 @@ static int exofs_read_lookup_dev_table(struct exofs_sb_info *sbi,
719out: 719out:
720 kfree(dt); 720 kfree(dt);
721 if (likely(!ret)) { 721 if (likely(!ret)) {
722 unsigned numdevs = sbi->comps.numdevs; 722 unsigned numdevs = sbi->oc.numdevs;
723 723
724 if (unlikely(fscb_od)) { 724 if (unlikely(fscb_od)) {
725 EXOFS_ERR("ERROR: Bad device-table container device not present\n"); 725 EXOFS_ERR("ERROR: Bad device-table container device not present\n");
@@ -732,7 +732,7 @@ out:
732 * starting at this device. See exofs_init_comps() 732 * starting at this device. See exofs_init_comps()
733 */ 733 */
734 for (i = 0; i < numdevs - 1; ++i) 734 for (i = 0; i < numdevs - 1; ++i)
735 sbi->comps.ods[i + numdevs] = sbi->comps.ods[i]; 735 sbi->oc.ods[i + numdevs] = sbi->oc.ods[i];
736 } 736 }
737 return ret; 737 return ret;
738} 738}
@@ -783,10 +783,10 @@ static int exofs_fill_super(struct super_block *sb, void *data, int silent)
783 sbi->one_comp.obj.partition = opts->pid; 783 sbi->one_comp.obj.partition = opts->pid;
784 sbi->one_comp.obj.id = 0; 784 sbi->one_comp.obj.id = 0;
785 exofs_make_credential(sbi->one_comp.cred, &sbi->one_comp.obj); 785 exofs_make_credential(sbi->one_comp.cred, &sbi->one_comp.obj);
786 sbi->comps.numdevs = 1; 786 sbi->oc.numdevs = 1;
787 sbi->comps.single_comp = EC_SINGLE_COMP; 787 sbi->oc.single_comp = EC_SINGLE_COMP;
788 sbi->comps.comps = &sbi->one_comp; 788 sbi->oc.comps = &sbi->one_comp;
789 sbi->comps.ods = sbi->_min_one_dev; 789 sbi->oc.ods = sbi->_min_one_dev;
790 790
791 /* fill in some other data by hand */ 791 /* fill in some other data by hand */
792 memset(sb->s_id, 0, sizeof(sb->s_id)); 792 memset(sb->s_id, 0, sizeof(sb->s_id));
@@ -835,7 +835,7 @@ static int exofs_fill_super(struct super_block *sb, void *data, int silent)
835 if (unlikely(ret)) 835 if (unlikely(ret))
836 goto free_sbi; 836 goto free_sbi;
837 } else { 837 } else {
838 sbi->comps.ods[0] = od; 838 sbi->oc.ods[0] = od;
839 } 839 }
840 840
841 __sbi_read_stats(sbi); 841 __sbi_read_stats(sbi);
@@ -875,7 +875,7 @@ static int exofs_fill_super(struct super_block *sb, void *data, int silent)
875 goto free_sbi; 875 goto free_sbi;
876 } 876 }
877 877
878 _exofs_print_device("Mounting", opts->dev_name, sbi->comps.ods[0], 878 _exofs_print_device("Mounting", opts->dev_name, sbi->oc.ods[0],
879 sbi->one_comp.obj.partition); 879 sbi->one_comp.obj.partition);
880 return 0; 880 return 0;
881 881
@@ -924,7 +924,7 @@ static int exofs_statfs(struct dentry *dentry, struct kstatfs *buf)
924 uint64_t used = ULLONG_MAX; 924 uint64_t used = ULLONG_MAX;
925 int ret; 925 int ret;
926 926
927 ret = ore_get_io_state(&sbi->layout, &sbi->comps, &ios); 927 ret = ore_get_io_state(&sbi->layout, &sbi->oc, &ios);
928 if (ret) { 928 if (ret) {
929 EXOFS_DBGMSG("ore_get_io_state failed.\n"); 929 EXOFS_DBGMSG("ore_get_io_state failed.\n");
930 return ret; 930 return ret;