Home
last modified time | relevance | path

Searched refs:lsm (Results 1 – 25 of 29) sorted by relevance

12

/drivers/staging/lustre/lustre/lov/
Dlov_ea.c52 struct lov_stripe_md *lsm; member
89 struct lov_stripe_md *lsm; in lsm_alloc_plain() local
98 lsm = libcfs_kvzalloc(*size, GFP_NOFS); in lsm_alloc_plain()
99 if (!lsm) in lsm_alloc_plain()
106 lsm->lsm_oinfo[i] = loi; in lsm_alloc_plain()
108 lsm->lsm_stripe_count = stripe_count; in lsm_alloc_plain()
109 return lsm; in lsm_alloc_plain()
113 kmem_cache_free(lov_oinfo_slab, lsm->lsm_oinfo[i]); in lsm_alloc_plain()
114 kvfree(lsm); in lsm_alloc_plain()
118 void lsm_free_plain(struct lov_stripe_md *lsm) in lsm_free_plain() argument
[all …]
Dlov_merge.c49 int lov_merge_lvb_kms(struct lov_stripe_md *lsm, in lov_merge_lvb_kms() argument
61 assert_spin_locked(&lsm->lsm_lock); in lov_merge_lvb_kms()
62 LASSERT(lsm->lsm_lock_owner == current_pid()); in lov_merge_lvb_kms()
65 POSTID(&lsm->lsm_oi), lvb->lvb_size, lvb->lvb_mtime, in lov_merge_lvb_kms()
67 for (i = 0; i < lsm->lsm_stripe_count; i++) { in lov_merge_lvb_kms()
68 struct lov_oinfo *loi = lsm->lsm_oinfo[i]; in lov_merge_lvb_kms()
77 lov_size = lov_stripe_size(lsm, tmpsize, i); in lov_merge_lvb_kms()
84 lov_size = lov_stripe_size(lsm, tmpsize, i); in lov_merge_lvb_kms()
97 POSTID(&lsm->lsm_oi), loi->loi_ost_idx, in lov_merge_lvb_kms()
113 int lov_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm, in lov_adjust_kms() argument
[all …]
Dlov_offset.c46 u64 lov_stripe_size(struct lov_stripe_md *lsm, u64 ost_size, in lov_stripe_size() argument
49 unsigned long ssize = lsm->lsm_stripe_size; in lov_stripe_size()
53 int magic = lsm->lsm_magic; in lov_stripe_size()
59 lsm_op_find(magic)->lsm_stripe_by_index(lsm, &stripeno, NULL, &swidth); in lov_stripe_size()
119 int lov_stripe_offset(struct lov_stripe_md *lsm, u64 lov_off, in lov_stripe_offset() argument
122 unsigned long ssize = lsm->lsm_stripe_size; in lov_stripe_offset()
124 int magic = lsm->lsm_magic; in lov_stripe_offset()
134 lsm_op_find(magic)->lsm_stripe_by_index(lsm, &stripeno, &lov_off, in lov_stripe_offset()
176 u64 lov_size_to_stripe(struct lov_stripe_md *lsm, u64 file_size, in lov_size_to_stripe() argument
179 unsigned long ssize = lsm->lsm_stripe_size; in lov_size_to_stripe()
[all …]
Dlov_object.c205 struct lov_stripe_md *lsm = conf->u.coc_md->lsm; in lov_init_raid0() local
209 if (lsm->lsm_magic != LOV_MAGIC_V1 && lsm->lsm_magic != LOV_MAGIC_V3) { in lov_init_raid0()
210 dump_lsm(D_ERROR, lsm); in lov_init_raid0()
212 LOV_MAGIC_V1, LOV_MAGIC_V3, lsm->lsm_magic); in lov_init_raid0()
216 lov->lo_lsm = lsm_addref(lsm); in lov_init_raid0()
217 r0->lo_nr = lsm->lsm_stripe_count; in lov_init_raid0()
231 struct lov_oinfo *oinfo = lsm->lsm_oinfo[i]; in lov_init_raid0()
270 struct lov_stripe_md *lsm = conf->u.coc_md->lsm; in lov_init_released() local
272 LASSERT(lsm != NULL); in lov_init_released()
273 LASSERT(lsm_is_released(lsm)); in lov_init_released()
[all …]
Dlov_pack.c112 struct lov_stripe_md *lsm) in lov_packmd() argument
124 if (lsm) { in lov_packmd()
125 lmm_magic = lsm->lsm_magic; in lov_packmd()
142 if (lsm) { in lov_packmd()
147 lsm->lsm_stripe_count); in lov_packmd()
148 lsm->lsm_stripe_count = stripe_count; in lov_packmd()
149 } else if (!lsm_is_released(lsm)) { in lov_packmd()
150 stripe_count = lsm->lsm_stripe_count; in lov_packmd()
172 if (*lmmp && !lsm) { in lov_packmd()
196 if (!lsm) in lov_packmd()
[all …]
Dlov_internal.h133 struct lov_stripe_md *lsm, int stripeno, int *set);
134 int lov_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm,
136 int lov_merge_lvb_kms(struct lov_stripe_md *lsm,
140 u64 lov_stripe_size(struct lov_stripe_md *lsm, u64 ost_size,
142 int lov_stripe_offset(struct lov_stripe_md *lsm, u64 lov_off,
144 u64 lov_size_to_stripe(struct lov_stripe_md *lsm, u64 file_size,
146 int lov_stripe_intersects(struct lov_stripe_md *lsm, int stripeno,
149 int lov_stripe_number(struct lov_stripe_md *lsm, u64 lov_off);
175 struct obdo *src_oa, struct lov_stripe_md *lsm,
211 struct lov_stripe_md *lsm);
[all …]
Dlov_obd.c970 struct lov_stripe_md *obj_mdp, *lsm; in lov_recreate() local
983 lsm = *ea; in lov_recreate()
984 if (lsm == NULL) { in lov_recreate()
994 for (i = 0; i < lsm->lsm_stripe_count; i++) { in lov_recreate()
995 struct lov_oinfo *loi = lsm->lsm_oinfo[i]; in lov_recreate()
1008 if (i == lsm->lsm_stripe_count) { in lov_recreate()
1062 struct obdo *oa, struct lov_stripe_md *lsm, in lov_destroy() argument
1072 ASSERT_LSM_MAGIC(lsm); in lov_destroy()
1084 rc = lov_prep_destroy_set(exp, &oinfo, oa, lsm, oti, &set); in lov_destroy()
1109 LASSERT(lsm_op_find(lsm->lsm_magic) != NULL); in lov_destroy()
[all …]
Dlov_io.c87 struct lov_stripe_md *lsm = lio->lis_object->lo_lsm; in lov_io_sub_inherit() local
97 new_size = lov_size_to_stripe(lsm, new_size, stripe); in lov_io_sub_inherit()
107 off = lov_size_to_stripe(lsm, off, stripe); in lov_io_sub_inherit()
262 struct lov_stripe_md *lsm = lio->lis_object->lo_lsm; in lov_page_subio() local
268 LASSERT(lsm != NULL); in lov_page_subio()
278 struct lov_stripe_md *lsm = lio->lis_object->lo_lsm; in lov_io_subio_init() local
288 libcfs_kvzalloc(lsm->lsm_stripe_count * in lov_io_subio_init()
384 struct lov_stripe_md *lsm = lio->lis_object->lo_lsm; in lov_io_iter_init() local
394 if (!lov_stripe_intersects(lsm, stripe, lio->lis_pos, in lov_io_iter_init()
432 struct lov_stripe_md *lsm = lio->lis_object->lo_lsm; in lov_io_rw_iter_init() local
[all …]
Dlov_request.c352 struct obdo *src_oa, struct lov_stripe_md *lsm, in lov_prep_destroy_set() argument
367 set->set_oi->oi_md = lsm; in lov_prep_destroy_set()
373 for (i = 0; i < lsm->lsm_stripe_count; i++) { in lov_prep_destroy_set()
377 loi = lsm->lsm_oinfo[i]; in lov_prep_destroy_set()
437 struct lov_stripe_md *lsm = req->rq_rqset->set_oi->oi_md; in lov_update_setattr_set() local
448 lsm->lsm_oinfo[req->rq_stripe]->loi_lvb.lvb_ctime = in lov_update_setattr_set()
451 lsm->lsm_oinfo[req->rq_stripe]->loi_lvb.lvb_mtime = in lov_update_setattr_set()
454 lsm->lsm_oinfo[req->rq_stripe]->loi_lvb.lvb_atime = in lov_update_setattr_set()
Dlov_lock.c903 struct lov_stripe_md *lsm = lov->lo_lsm; in lov_lock_stripe_is_matching() local
920 if (end - start <= lsm->lsm_stripe_size) { in lov_lock_stripe_is_matching()
923 idx = lov_stripe_number(lsm, start); in lov_lock_stripe_is_matching()
926 idx = lov_stripe_number(lsm, end); in lov_lock_stripe_is_matching()
941 result = lov_stripe_intersects(lsm, stripe, start, end, in lov_lock_stripe_is_matching()
/drivers/staging/lustre/lustre/obdecho/
Decho_client.c163 struct lov_stripe_md **lsm);
941 struct lov_stripe_md *lsm; in cl_echo_object_find() local
949 lsm = *lsmp; in cl_echo_object_find()
950 LASSERT(lsm); in cl_echo_object_find()
951 LASSERTF(ostid_id(&lsm->lsm_oi) != 0, DOSTID"\n", POSTID(&lsm->lsm_oi)); in cl_echo_object_find()
952 LASSERTF(ostid_seq(&lsm->lsm_oi) == FID_SEQ_ECHO, DOSTID"\n", in cl_echo_object_find()
953 POSTID(&lsm->lsm_oi)); in cl_echo_object_find()
967 struct lov_oinfo *oinfo = lsm->lsm_oinfo[0]; in cl_echo_object_find()
970 oinfo->loi_oi = lsm->lsm_oi; in cl_echo_object_find()
977 md->lsm = lsm; in cl_echo_object_find()
[all …]
/drivers/staging/lustre/lustre/lclient/
Dlcommon_misc.c54 struct lov_stripe_md lsm = { .lsm_magic = LOV_MAGIC_V3 }; in cl_init_ea_size() local
66 lsm.lsm_stripe_count = stripes; in cl_init_ea_size()
67 easize = obd_size_diskmd(dt_exp, &lsm); in cl_init_ea_size()
71 lsm.lsm_stripe_count = def_stripes; in cl_init_ea_size()
72 def_easize = obd_size_diskmd(dt_exp, &lsm); in cl_init_ea_size()
Dlcommon_cl.c1051 lli->lli_has_smd = lsm_has_objects(md->lsm); in cl_file_inode_init()
1203 inline void ccc_inode_lsm_put(struct inode *inode, struct lov_stripe_md *lsm) in ccc_inode_lsm_put() argument
1205 lov_lsm_put(cl_i2info(inode)->lli_clob, lsm); in ccc_inode_lsm_put()
/drivers/staging/lustre/lustre/llite/
Dfile.c910 static int ll_lsm_getattr(struct lov_stripe_md *lsm, struct obd_export *exp, in ll_lsm_getattr() argument
917 LASSERT(lsm != NULL); in ll_lsm_getattr()
919 oinfo.oi_md = lsm; in ll_lsm_getattr()
921 oinfo.oi_oa->o_oi = lsm->lsm_oi; in ll_lsm_getattr()
960 struct lov_stripe_md *lsm; in ll_inode_getattr() local
963 lsm = ccc_inode_lsm_get(inode); in ll_inode_getattr()
964 rc = ll_lsm_getattr(lsm, ll_i2dtexp(inode), in ll_inode_getattr()
967 struct ost_id *oi = lsm ? &lsm->lsm_oi : &obdo->o_oi; in ll_inode_getattr()
975 ccc_inode_lsm_put(inode, lsm); in ll_inode_getattr()
1027 int ll_glimpse_ioctl(struct ll_sb_info *sbi, struct lov_stripe_md *lsm, in ll_glimpse_ioctl() argument
[all …]
Dvvp_object.c150 if (conf->u.coc_md != NULL && conf->u.coc_md->lsm != NULL) { in vvp_conf_set()
153 conf->u.coc_md->lsm->lsm_layout_gen); in vvp_conf_set()
155 lli->lli_has_smd = lsm_has_objects(conf->u.coc_md->lsm); in vvp_conf_set()
156 ll_layout_version_set(lli, conf->u.coc_md->lsm->lsm_layout_gen); in vvp_conf_set()
Drw26.c462 struct lov_stripe_md *lsm; in ll_direct_IO_26() local
464 lsm = ccc_inode_lsm_get(inode); in ll_direct_IO_26()
465 LASSERT(lsm != NULL); in ll_direct_IO_26()
466 lov_stripe_lock(lsm); in ll_direct_IO_26()
467 obd_adjust_kms(ll_i2dtexp(inode), lsm, file_offset, 0); in ll_direct_IO_26()
468 lov_stripe_unlock(lsm); in ll_direct_IO_26()
469 ccc_inode_lsm_put(inode, lsm); in ll_direct_IO_26()
Ddcache.c124 struct lov_stripe_md *lsm; in find_cbdata() local
133 lsm = ccc_inode_lsm_get(inode); in find_cbdata()
134 if (lsm == NULL) in find_cbdata()
137 rc = obd_find_cbdata(sbi->ll_dt_exp, lsm, return_if_equal, NULL); in find_cbdata()
138 ccc_inode_lsm_put(inode, lsm); in find_cbdata()
Dllite_lib.c497 if (lmd.lsm) in client_common_fill_super()
498 obd_free_memmd(sbi->ll_dt_exp, &lmd.lsm); in client_common_fill_super()
1294 struct lov_stripe_md *lsm; in ll_setattr_raw() local
1298 lsm = ccc_inode_lsm_get(inode); in ll_setattr_raw()
1299 if (lsm && lsm->lsm_pattern & LOV_PATTERN_F_RELEASED) in ll_setattr_raw()
1301 ccc_inode_lsm_put(inode, lsm); in ll_setattr_raw()
1513 struct lov_stripe_md *lsm = md->lsm; in ll_update_inode() local
1516 LASSERT((lsm != NULL) == ((body->valid & OBD_MD_FLEASIZE) != 0)); in ll_update_inode()
1517 if (lsm != NULL) { in ll_update_inode()
1522 lli->lli_maxbytes = lsm->lsm_maxbytes; in ll_update_inode()
[all …]
Dnamei.c124 ll_get_fsname(sb, NULL, 0), md->lsm, in ll_iget()
875 struct lov_stripe_md *lsm = NULL; in ll_objects_destroy() local
899 rc = obd_unpackmd(ll_i2dtexp(dir), &lsm, eadata, body->eadatasize); in ll_objects_destroy()
904 LASSERT(rc >= sizeof(*lsm)); in ll_objects_destroy()
912 oa->o_oi = lsm->lsm_oi; in ll_objects_destroy()
922 lsm->lsm_stripe_count); in ll_objects_destroy()
929 rc = obd_destroy(NULL, ll_i2dtexp(dir), oa, lsm, &oti, in ll_objects_destroy()
933 POSTID(&lsm->lsm_oi), rc); in ll_objects_destroy()
935 obd_free_memmd(ll_i2dtexp(dir), &lsm); in ll_objects_destroy()
Dxattr.c471 struct lov_stripe_md *lsm; in ll_getxattr() local
487 lsm = ccc_inode_lsm_get(inode); in ll_getxattr()
488 if (lsm == NULL) { in ll_getxattr()
498 rc = obd_packmd(ll_i2dtexp(inode), &lmm, lsm); in ll_getxattr()
501 ccc_inode_lsm_put(inode, lsm); in ll_getxattr()
/drivers/staging/lustre/lustre/include/
Dobd.h119 static inline bool lsm_is_released(struct lov_stripe_md *lsm) in lsm_is_released() argument
121 return !!(lsm->lsm_pattern & LOV_PATTERN_F_RELEASED); in lsm_is_released()
124 static inline bool lsm_has_objects(struct lov_stripe_md *lsm) in lsm_has_objects() argument
126 if (lsm == NULL) in lsm_has_objects()
128 if (lsm_is_released(lsm)) in lsm_has_objects()
135 struct lov_stripe_md lsm; in lov_stripe_md_size() local
137 return sizeof(lsm) + stripe_count * sizeof(lsm.lsm_oinfo[0]); in lov_stripe_md_size()
971 struct lov_stripe_md *lsm);
1040 int (*o_adjust_kms)(struct obd_export *exp, struct lov_stripe_md *lsm,
1108 struct lov_stripe_md *lsm; member
[all …]
Dlclient.h388 void lov_lsm_put(struct cl_object *clobj, struct lov_stripe_md *lsm);
392 void ccc_inode_lsm_put(struct inode *inode, struct lov_stripe_md *lsm);
Dobd_class.h415 struct lov_stripe_md *lsm) in obd_get_info() argument
423 lsm); in obd_get_info()
1145 struct lov_stripe_md *lsm, u64 size, in obd_adjust_kms() argument
1153 rc = OBP(exp->exp_obd, adjust_kms)(exp, lsm, size, shrink); in obd_adjust_kms()
1170 struct lov_stripe_md *lsm, in obd_find_cbdata() argument
1178 rc = OBP(exp->exp_obd, find_cbdata)(exp, lsm, it, data); in obd_find_cbdata()
/drivers/staging/lustre/lustre/osc/
Dosc_request.c111 struct lov_stripe_md *lsm) in osc_packmd() argument
119 if (*lmmp != NULL && lsm == NULL) { in osc_packmd()
123 } else if (unlikely(lsm != NULL && ostid_id(&lsm->lsm_oi) == 0)) { in osc_packmd()
133 if (lsm) in osc_packmd()
134 ostid_cpu_to_le(&lsm->lsm_oi, &(*lmmp)->lmm_oi); in osc_packmd()
439 struct lov_stripe_md *lsm; in osc_real_create() local
445 lsm = *ea; in osc_real_create()
446 if (!lsm) { in osc_real_create()
447 rc = obd_alloc_memmd(exp, &lsm); in osc_real_create()
499 lsm->lsm_oi = oa->o_oi; in osc_real_create()
[all …]
/drivers/staging/lustre/lustre/mdc/
Dmdc_request.c487 rc = obd_unpackmd(dt_exp, &md->lsm, lmm, lmmsize); in mdc_get_lustre_md()
491 if (rc < sizeof(*md->lsm)) { in mdc_get_lustre_md()
494 rc, (int)sizeof(*md->lsm)); in mdc_get_lustre_md()
570 if (md->lsm) in mdc_get_lustre_md()
571 obd_free_memmd(dt_exp, &md->lsm); in mdc_get_lustre_md()
2102 struct lov_stripe_md *lsm) in mdc_get_info() argument

12