diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2011-09-28 04:39:59 -0400 |
---|---|---|
committer | Boaz Harrosh <bharrosh@panasas.com> | 2011-10-03 11:07:50 -0400 |
commit | 5bf696dad4beecb6174e701c97e1f2574e6a2c96 (patch) | |
tree | b4cfd7e00a61310aaf5ac90e670c840184fc115d /fs/exofs/inode.c | |
parent | de74b05ace743b4a7aefad9e9b33ff899979b34a (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/inode.c')
-rw-r--r-- | fs/exofs/inode.c | 22 |
1 files changed, 11 insertions, 11 deletions
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; |