/drivers/staging/lustre/lustre/lov/ |
H A D | lov_merge.c | 49 int lov_merge_lvb_kms(struct lov_stripe_md *lsm, argument 61 assert_spin_locked(&lsm->lsm_lock); 62 LASSERT(lsm->lsm_lock_owner == current_pid()); 65 POSTID(&lsm->lsm_oi), lvb->lvb_size, lvb->lvb_mtime, 67 for (i = 0; i < lsm->lsm_stripe_count; i++) { 68 struct lov_oinfo *loi = lsm->lsm_oinfo[i]; 77 lov_size = lov_stripe_size(lsm, tmpsize, i); 84 lov_size = lov_stripe_size(lsm, tmpsize, i); 97 POSTID(&lsm->lsm_oi), loi->loi_ost_idx, 113 int lov_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm, argument 149 lov_merge_attrs(struct obdo *tgt, struct obdo *src, u64 valid, struct lov_stripe_md *lsm, int stripeno, int *set) argument [all...] |
H A D | lov_offset.c | 46 u64 lov_stripe_size(struct lov_stripe_md *lsm, u64 ost_size, argument 49 unsigned long ssize = lsm->lsm_stripe_size; 53 int magic = lsm->lsm_magic; 59 lsm_op_find(magic)->lsm_stripe_by_index(lsm, &stripeno, NULL, &swidth); 119 int lov_stripe_offset(struct lov_stripe_md *lsm, u64 lov_off, argument 122 unsigned long ssize = lsm->lsm_stripe_size; 124 int magic = lsm->lsm_magic; 134 lsm_op_find(magic)->lsm_stripe_by_index(lsm, &stripeno, &lov_off, 176 u64 lov_size_to_stripe(struct lov_stripe_md *lsm, u64 file_size, argument 179 unsigned long ssize = lsm 217 lov_stripe_intersects(struct lov_stripe_md *lsm, int stripeno, u64 start, u64 end, u64 *obd_start, u64 *obd_end) argument 249 lov_stripe_number(struct lov_stripe_md *lsm, u64 lov_off) argument [all...] |
H A D | lov_ea.c | 52 struct lov_stripe_md *lsm; member in struct:lovea_unpack_args 89 struct lov_stripe_md *lsm; local 98 OBD_ALLOC_LARGE(lsm, *size); 99 if (!lsm) 106 lsm->lsm_oinfo[i] = loi; 108 lsm->lsm_stripe_count = stripe_count; 109 return lsm; 113 OBD_SLAB_FREE(lsm->lsm_oinfo[i], lov_oinfo_slab, sizeof(*loi)); 114 OBD_FREE_LARGE(lsm, *size); 118 void lsm_free_plain(struct lov_stripe_md *lsm) argument 130 lsm_unpackmd_common(struct lov_stripe_md *lsm, struct lov_mds_md *lmm) argument 145 lsm_stripe_by_index_plain(struct lov_stripe_md *lsm, int *stripeno, u64 *lov_off, u64 *swidth) argument 153 lsm_stripe_by_offset_plain(struct lov_stripe_md *lsm, int *stripeno, u64 *lov_off, u64 *swidth) argument 160 lsm_destroy_plain(struct lov_stripe_md *lsm, struct obdo *oa, struct obd_export *md_exp) argument 212 lsm_unpackmd_v1(struct lov_obd *lov, struct lov_stripe_md *lsm, struct lov_mds_md_v1 *lmm) argument 290 lsm_unpackmd_v3(struct lov_obd *lov, struct lov_stripe_md *lsm, struct lov_mds_md *lmmv1) argument 349 dump_lsm(unsigned int level, const struct lov_stripe_md *lsm) argument [all...] |
H A D | lov_internal.h | 170 struct lov_stripe_md *lsm, int stripeno, int *set); 171 int lov_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm, 173 int lov_merge_lvb_kms(struct lov_stripe_md *lsm, 177 u64 lov_stripe_size(struct lov_stripe_md *lsm, u64 ost_size, 179 int lov_stripe_offset(struct lov_stripe_md *lsm, u64 lov_off, 181 u64 lov_size_to_stripe(struct lov_stripe_md *lsm, u64 file_size, 183 int lov_stripe_intersects(struct lov_stripe_md *lsm, int stripeno, 186 int lov_stripe_number(struct lov_stripe_md *lsm, u64 lov_off); 212 struct obdo *src_oa, struct lov_stripe_md *lsm, 248 struct lov_stripe_md *lsm); 300 lsm_addref(struct lov_stripe_md *lsm) argument [all...] |
H A D | lov_pack.c | 132 struct lov_stripe_md *lsm) 144 if (lsm) { 145 lmm_magic = lsm->lsm_magic; 150 /* lsm == NULL and lmmp == NULL */ 162 if (lsm) { 167 lsm->lsm_stripe_count); 168 lsm->lsm_stripe_count = stripe_count; 169 } else if (!lsm_is_released(lsm)) { 170 stripe_count = lsm->lsm_stripe_count; 192 if (*lmmp && !lsm) { 131 lov_packmd(struct obd_export *exp, struct lov_mds_md **lmmp, struct lov_stripe_md *lsm) argument 337 struct lov_stripe_md *lsm = *lsmp; local 412 lov_getstripe(struct obd_export *exp, struct lov_stripe_md *lsm, struct lov_user_md *lump) argument [all...] |
H A D | lov_request.c | 361 struct obdo *src_oa, struct lov_stripe_md *lsm, 376 set->set_oi->oi_md = lsm; 382 for (i = 0; i < lsm->lsm_stripe_count; i++) { 386 loi = lsm->lsm_oinfo[i]; 442 struct lov_stripe_md *lsm = req->rq_rqset->set_oi->oi_md; local 453 lsm->lsm_oinfo[req->rq_stripe]->loi_lvb.lvb_ctime = 456 lsm->lsm_oinfo[req->rq_stripe]->loi_lvb.lvb_mtime = 459 lsm->lsm_oinfo[req->rq_stripe]->loi_lvb.lvb_atime = 360 lov_prep_destroy_set(struct obd_export *exp, struct obd_info *oinfo, struct obdo *src_oa, struct lov_stripe_md *lsm, struct obd_trans_info *oti, struct lov_request_set **reqset) argument
|
H A D | lov_lock.c | 902 struct lov_stripe_md *lsm = lov->lo_lsm; local 917 result = end - start <= lsm->lsm_stripe_size && 918 stripe == lov_stripe_number(lsm, start) && 919 stripe == lov_stripe_number(lsm, end); 928 result = lov_stripe_intersects(lsm, stripe, start, end,
|
H A D | lov_io.c | 86 struct lov_stripe_md *lsm = lio->lis_object->lo_lsm; local 97 new_size = lov_size_to_stripe(lsm, new_size, stripe); 107 off = lov_size_to_stripe(lsm, off, stripe); 259 struct lov_stripe_md *lsm = lio->lis_object->lo_lsm; local 265 LASSERT(lsm != NULL); 276 struct lov_stripe_md *lsm = lio->lis_object->lo_lsm; local 286 lsm->lsm_stripe_count * sizeof(lio->lis_subs[0])); 380 struct lov_stripe_md *lsm = lio->lis_object->lo_lsm; local 390 if (!lov_stripe_intersects(lsm, stripe, lio->lis_pos, 419 struct lov_stripe_md *lsm local [all...] |
H A D | lov_object.c | 205 struct lov_stripe_md *lsm = conf->u.coc_md->lsm; local 209 if (lsm->lsm_magic != LOV_MAGIC_V1 && lsm->lsm_magic != LOV_MAGIC_V3) { 210 dump_lsm(D_ERROR, lsm); 212 LOV_MAGIC_V1, LOV_MAGIC_V3, lsm->lsm_magic); 216 lov->lo_lsm = lsm_addref(lsm); 217 r0->lo_nr = lsm->lsm_stripe_count; 230 struct lov_oinfo *oinfo = lsm->lsm_oinfo[i]; 266 struct lov_stripe_md *lsm local 338 struct lov_stripe_md *lsm = lov->lo_lsm; local 401 struct lov_stripe_md *lsm = lov->lo_lsm; local 425 struct lov_stripe_md *lsm = lov->lo_lsm; local 468 struct lov_stripe_md *lsm = lov->lo_lsm; local 566 lov_type(struct lov_stripe_md *lsm) argument 743 struct lov_stripe_md *lsm = NULL; local 909 struct lov_stripe_md *lsm = NULL; local 922 lov_lsm_decref(struct lov_object *lov, struct lov_stripe_md *lsm) argument 936 struct lov_stripe_md *lsm = NULL; local 949 lov_lsm_put(struct cl_object *unused, struct lov_stripe_md *lsm) argument 969 struct lov_stripe_md *lsm; local [all...] |
H A D | lov_obd.c | 993 struct lov_stripe_md *obj_mdp, *lsm; local 1006 lsm = *ea; 1007 if (lsm == NULL) { 1017 for (i = 0; i < lsm->lsm_stripe_count; i++) { 1018 if (lsm->lsm_oinfo[i]->loi_ost_idx == ost_idx) { 1019 if (ostid_id(&lsm->lsm_oinfo[i]->loi_oi) != 1027 if (i == lsm->lsm_stripe_count) { 1081 struct obdo *oa, struct lov_stripe_md *lsm, 1092 ASSERT_LSM_MAGIC(lsm); 1104 rc = lov_prep_destroy_set(exp, &oinfo, oa, lsm, ot 1080 lov_destroy(const struct lu_env *env, struct obd_export *exp, struct obdo *oa, struct lov_stripe_md *lsm, struct obd_trans_info *oti, struct obd_export *md_exp, void *capa) argument 1295 lov_find_cbdata(struct obd_export *exp, struct lov_stripe_md *lsm, ldlm_iterator_t it, void *data) argument 1609 fiemap_calc_fm_end_offset(struct ll_user_fiemap *fiemap, struct lov_stripe_md *lsm, u64 fm_start, u64 fm_end, int *start_stripe) argument 1666 fiemap_calc_last_stripe(struct lov_stripe_md *lsm, u64 fm_start, u64 fm_end, int start_stripe, int *stripe_count) argument 1725 lov_fiemap(struct lov_obd *lov, __u32 keylen, void *key, __u32 *vallen, void *val, struct lov_stripe_md *lsm) argument 1957 lov_get_info(const struct lu_env *env, struct obd_export *exp, __u32 keylen, void *key, __u32 *vallen, void *val, struct lov_stripe_md *lsm) argument [all...] |
/drivers/staging/lustre/lustre/lclient/ |
H A D | lcommon_misc.c | 55 struct lov_stripe_md lsm = { .lsm_magic = LOV_MAGIC_V3 }; local 67 lsm.lsm_stripe_count = stripes; 68 easize = obd_size_diskmd(dt_exp, &lsm); 72 lsm.lsm_stripe_count = def_stripes; 73 def_easize = obd_size_diskmd(dt_exp, &lsm);
|
H A D | lcommon_cl.c | 1125 lli->lli_has_smd = lsm_has_objects(md->lsm); 1264 /* lsm is unreliable after hsm implementation as layout can be changed at 1270 * Notice that the lsm returned by this function may not be valid unless called 1277 inline void ccc_inode_lsm_put(struct inode *inode, struct lov_stripe_md *lsm) argument 1279 lov_lsm_put(cl_i2info(inode)->lli_clob, lsm);
|
/drivers/staging/lustre/lustre/llite/ |
H A D | dcache.c | 124 struct lov_stripe_md *lsm; local 133 lsm = ccc_inode_lsm_get(inode); 134 if (lsm == NULL) 137 rc = obd_find_cbdata(sbi->ll_dt_exp, lsm, return_if_equal, NULL); 138 ccc_inode_lsm_put(inode, lsm);
|
H A D | xattr.c | 477 struct lov_stripe_md *lsm; local 493 lsm = ccc_inode_lsm_get(inode); 494 if (lsm == NULL) { 504 rc = obd_packmd(ll_i2dtexp(inode), &lmm, lsm); 507 ccc_inode_lsm_put(inode, lsm);
|
H A D | rw26.c | 457 struct lov_stripe_md *lsm; local 459 lsm = ccc_inode_lsm_get(inode); 460 LASSERT(lsm != NULL); 461 lov_stripe_lock(lsm); 462 obd_adjust_kms(ll_i2dtexp(inode), lsm, file_offset, 0); local 463 lov_stripe_unlock(lsm); 464 ccc_inode_lsm_put(inode, lsm);
|
H A D | dir.c | 946 * Always modified even if no lsm. */ 1002 /* Get lsm for this fid */ 1024 * Always modified even if no lsm. */ 1566 struct lov_stripe_md *lsm; local 1611 rc = obd_unpackmd(sbi->ll_dt_exp, &lsm, lmm, lmmsize); 1620 rc = ll_glimpse_ioctl(sbi, lsm, &st); 1630 obd_free_memmd(sbi->ll_dt_exp, &lsm);
|
H A D | llite_lib.c | 536 if (lmd.lsm) 537 obd_free_memmd(sbi->ll_dt_exp, &lmd.lsm); 1233 * XXX This has to be done before lsm is freed below, because 1234 * cl_object still uses inode lsm. 1351 /* If this inode has objects allocated to it (lsm != NULL), then the OST 1462 struct lov_stripe_md *lsm; local 1466 lsm = ccc_inode_lsm_get(inode); 1467 if (lsm && lsm->lsm_pattern & LOV_PATTERN_F_RELEASED) 1469 ccc_inode_lsm_put(inode, lsm); 1680 struct lov_stripe_md *lsm = md->lsm; local 1932 struct lov_stripe_md *lsm; local [all...] |
H A D | namei.c | 144 "%s: apply lsm %p to inode "DFID".\n", 145 ll_get_fsname(sb, NULL, 0), md->lsm, 1028 struct lov_stripe_md *lsm = NULL; local 1053 rc = obd_unpackmd(ll_i2dtexp(dir), &lsm, eadata, body->eadatasize); 1058 LASSERT(rc >= sizeof(*lsm)); 1066 oa->o_oi = lsm->lsm_oi; 1076 lsm->lsm_stripe_count); 1089 rc = obd_destroy(NULL, ll_i2dtexp(dir), oa, lsm, &oti, 1094 POSTID(&lsm->lsm_oi), rc); 1096 obd_free_memmd(ll_i2dtexp(dir), &lsm); local [all...] |
H A D | file.c | 926 /* Fills the obdo with the attributes for the lsm */ 927 static int ll_lsm_getattr(struct lov_stripe_md *lsm, struct obd_export *exp, argument 935 LASSERT(lsm != NULL); 937 oinfo.oi_md = lsm; 939 oinfo.oi_oa->o_oi = lsm->lsm_oi; 980 struct lov_stripe_md *lsm; local 983 lsm = ccc_inode_lsm_get(inode); 984 rc = ll_lsm_getattr(lsm, ll_i2dtexp(inode), 988 struct ost_id *oi = lsm ? &lsm 1048 ll_glimpse_ioctl(struct ll_sb_info *sbi, struct lov_stripe_md *lsm, lstat_t *st) argument 1282 struct lov_stripe_md *lsm = NULL, *lsm2; local 1360 struct lov_stripe_md *lsm = NULL; local 1531 struct lov_stripe_md *lsm; local 1547 struct lov_stripe_md *lsm; local 1685 struct lov_stripe_md *lsm = NULL; local 1856 struct lov_stripe_md *lsm = NULL; local [all...] |
/drivers/staging/lustre/lustre/mgc/ |
H A D | mgc_request.c | 860 static int mgc_enqueue(struct obd_export *exp, struct lov_stripe_md *lsm, argument
|
/drivers/staging/lustre/lustre/lmv/ |
H A D | lmv_obd.c | 2332 struct lov_stripe_md *lsm) 2434 struct lov_stripe_md *lsm) 2447 if (*lmmp && !lsm) { 2459 if (!lsm) 2462 lsmp = (struct lmv_stripe_md *)lsm; 2330 lmv_get_info(const struct lu_env *env, struct obd_export *exp, __u32 keylen, void *key, __u32 *vallen, void *val, struct lov_stripe_md *lsm) argument 2433 lmv_packmd(struct obd_export *exp, struct lov_mds_md **lmmp, struct lov_stripe_md *lsm) argument
|
/drivers/staging/lustre/lustre/mdc/ |
H A D | mdc_request.c | 541 rc = obd_unpackmd(dt_exp, &md->lsm, lmm, lmmsize); 545 if (rc < sizeof(*md->lsm)) { 547 "lsm size too small: rc < sizeof (*md->lsm) (%d < %d)\n", 548 rc, (int)sizeof(*md->lsm)); 649 if (md->lsm) 650 obd_free_memmd(dt_exp, &md->lsm); 2204 struct lov_stripe_md *lsm) 2202 mdc_get_info(const struct lu_env *env, struct obd_export *exp, __u32 keylen, void *key, __u32 *vallen, void *val, struct lov_stripe_md *lsm) argument
|
/drivers/staging/lustre/lustre/include/ |
H A D | obd_class.h | 505 struct lov_stripe_md *lsm) 513 lsm); 1224 struct lov_stripe_md *lsm, u64 size, 1232 rc = OBP(exp->exp_obd, adjust_kms)(exp, lsm, size, shrink); 1249 struct lov_stripe_md *lsm, 1257 rc = OBP(exp->exp_obd, find_cbdata)(exp, lsm, it, data); 502 obd_get_info(const struct lu_env *env, struct obd_export *exp, __u32 keylen, void *key, __u32 *vallen, void *val, struct lov_stripe_md *lsm) argument 1223 obd_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm, u64 size, int shrink) argument 1248 obd_find_cbdata(struct obd_export *exp, struct lov_stripe_md *lsm, ldlm_iterator_t it, void *data) argument
|
/drivers/staging/lustre/lustre/obdecho/ |
H A D | echo_client.c | 163 struct lov_stripe_md **lsm); 454 /* clear the lsm pointer so that it won't get freed. */ 929 struct lov_stripe_md *lsm; local 937 lsm = *lsmp; 938 LASSERT(lsm); 939 LASSERTF(ostid_id(&lsm->lsm_oi) != 0, DOSTID"\n", POSTID(&lsm->lsm_oi)); 940 LASSERTF(ostid_seq(&lsm->lsm_oi) == FID_SEQ_ECHO, DOSTID"\n", 941 POSTID(&lsm->lsm_oi)); 955 struct lov_oinfo *oinfo = lsm 1251 echo_copyout_lsm(struct lov_stripe_md *lsm, void *_ulsm, int ulsm_nob) argument 1272 echo_copyin_lsm(struct echo_device *ed, struct lov_stripe_md *lsm, void *ulsm, int ulsm_nob) argument 1307 struct lov_stripe_md *lsm = NULL; local 1395 struct lov_stripe_md *lsm = NULL; local 1431 echo_get_stripe_off_id(struct lov_stripe_md *lsm, u64 *offp, u64 *idp) argument 1460 echo_client_page_debug_setup(struct lov_stripe_md *lsm, struct page *page, int rw, u64 id, u64 offset, u64 count) argument 1490 echo_client_page_debug_check(struct lov_stripe_md *lsm, struct page *page, u64 id, u64 offset, u64 count) argument 1529 struct lov_stripe_md *lsm = eco->eo_lsm; local 1627 struct lov_stripe_md *lsm = eco->eo_lsm; local [all...] |
/drivers/staging/lustre/lustre/osc/ |
H A D | osc_request.c | 104 struct lov_stripe_md *lsm) 112 if (*lmmp != NULL && lsm == NULL) { 116 } else if (unlikely(lsm != NULL && ostid_id(&lsm->lsm_oi) == 0)) { 126 if (lsm) 127 ostid_cpu_to_le(&lsm->lsm_oi, &(*lmmp)->lmm_oi); 463 struct lov_stripe_md *lsm; local 469 lsm = *ea; 470 if (!lsm) { 471 rc = obd_alloc_memmd(exp, &lsm); 103 osc_packmd(struct obd_export *exp, struct lov_mds_md **lmmp, struct lov_stripe_md *lsm) argument 1245 osc_brw_prep_request(int cmd, struct client_obd *cli, struct obdo *oa, struct lov_stripe_md *lsm, u32 page_count, struct brw_page **pga, struct ptlrpc_request **reqp, struct obd_capa *ocapa, int reserve, int resend) argument 2129 osc_find_cbdata(struct obd_export *exp, struct lov_stripe_md *lsm, ldlm_iterator_t replace, void *data) argument 2593 osc_getstripe(struct lov_stripe_md *lsm, struct lov_user_md *lump) argument 2740 osc_get_info(const struct lu_env *env, struct obd_export *exp, u32 keylen, void *key, __u32 *vallen, void *val, struct lov_stripe_md *lsm) argument [all...] |