Home
last modified time | relevance | path

Searched refs:lsmp (Results 1 – 6 of 6) sorted by relevance

/drivers/staging/lustre/lustre/lov/
Dlov_pack.c284 int lov_alloc_memmd(struct lov_stripe_md **lsmp, __u16 stripe_count, in lov_alloc_memmd() argument
291 *lsmp = lsm_alloc_plain(stripe_count, &lsm_size); in lov_alloc_memmd()
292 if (!*lsmp) { in lov_alloc_memmd()
297 atomic_set(&(*lsmp)->lsm_refc, 1); in lov_alloc_memmd()
298 spin_lock_init(&(*lsmp)->lsm_lock); in lov_alloc_memmd()
299 (*lsmp)->lsm_magic = magic; in lov_alloc_memmd()
300 (*lsmp)->lsm_stripe_count = stripe_count; in lov_alloc_memmd()
301 (*lsmp)->lsm_maxbytes = LUSTRE_STRIPE_MAXBYTES * stripe_count; in lov_alloc_memmd()
302 (*lsmp)->lsm_pattern = pattern; in lov_alloc_memmd()
303 (*lsmp)->lsm_pool_name[0] = '\0'; in lov_alloc_memmd()
[all …]
Dlov_internal.h212 int lov_unpackmd(struct obd_export *exp, struct lov_stripe_md **lsmp,
216 int lov_alloc_memmd(struct lov_stripe_md **lsmp, __u16 stripe_count,
218 int lov_free_memmd(struct lov_stripe_md **lsmp);
Dlov_obd.c1053 #define ASSERT_LSM_MAGIC(lsmp) \ argument
1055 LASSERT((lsmp) != NULL); \
1056 LASSERTF(((lsmp)->lsm_magic == LOV_MAGIC_V1 || \
1057 (lsmp)->lsm_magic == LOV_MAGIC_V3), \
1058 "%p->lsm_magic=%x\n", (lsmp), (lsmp)->lsm_magic); \
/drivers/staging/lustre/lustre/obdecho/
Decho_client.c472 struct lov_stripe_md **lsmp) in echo_alloc_memmd() argument
478 return obd_alloc_memmd(ed->ed_ec->ec_exp, lsmp); in echo_alloc_memmd()
482 LASSERT(*lsmp == NULL); in echo_alloc_memmd()
483 *lsmp = kzalloc(lsm_size, GFP_NOFS); in echo_alloc_memmd()
484 if (!*lsmp) in echo_alloc_memmd()
487 (*lsmp)->lsm_oinfo[0] = kzalloc(sizeof(struct lov_oinfo), GFP_NOFS); in echo_alloc_memmd()
488 if (!(*lsmp)->lsm_oinfo[0]) { in echo_alloc_memmd()
489 kfree(*lsmp); in echo_alloc_memmd()
493 loi_init((*lsmp)->lsm_oinfo[0]); in echo_alloc_memmd()
494 (*lsmp)->lsm_maxbytes = LUSTRE_STRIPE_MAXBYTES; in echo_alloc_memmd()
[all …]
/drivers/staging/lustre/lustre/osc/
Dosc_request.c140 static int osc_unpackmd(struct obd_export *exp, struct lov_stripe_md **lsmp, in osc_unpackmd() argument
163 if (lsmp == NULL) in osc_unpackmd()
166 if (*lsmp != NULL && lmm == NULL) { in osc_unpackmd()
167 kfree((*lsmp)->lsm_oinfo[0]); in osc_unpackmd()
168 kfree(*lsmp); in osc_unpackmd()
169 *lsmp = NULL; in osc_unpackmd()
173 if (*lsmp == NULL) { in osc_unpackmd()
174 *lsmp = kzalloc(lsm_size, GFP_NOFS); in osc_unpackmd()
175 if (unlikely(*lsmp == NULL)) in osc_unpackmd()
177 (*lsmp)->lsm_oinfo[0] = kzalloc(sizeof(struct lov_oinfo), in osc_unpackmd()
[all …]
/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c2392 struct lmv_stripe_md *lsmp; in lmv_packmd() local
2415 lsmp = (struct lmv_stripe_md *)lsm; in lmv_packmd()
2418 if (lsmp->mea_magic != MEA_MAGIC_LAST_CHAR && in lmv_packmd()
2419 lsmp->mea_magic != MEA_MAGIC_ALL_CHARS) in lmv_packmd()
2422 meap->mea_magic = cpu_to_le32(lsmp->mea_magic); in lmv_packmd()
2423 meap->mea_count = cpu_to_le32(lsmp->mea_count); in lmv_packmd()
2424 meap->mea_master = cpu_to_le32(lsmp->mea_master); in lmv_packmd()
2427 meap->mea_ids[i] = lsmp->mea_ids[i]; in lmv_packmd()
2428 fid_cpu_to_le(&meap->mea_ids[i], &lsmp->mea_ids[i]); in lmv_packmd()
2434 static int lmv_unpackmd(struct obd_export *exp, struct lov_stripe_md **lsmp, in lmv_unpackmd() argument
[all …]