/linux-4.1.27/drivers/staging/lustre/lustre/lov/ |
D | lov_pack.c | 419 struct lov_user_md_v3 lum; in lov_getstripe() local 438 if (copy_from_user(&lum, lump, lum_size)) { in lov_getstripe() 441 } else if ((lum.lmm_magic != LOV_USER_MAGIC) && in lov_getstripe() 442 (lum.lmm_magic != LOV_USER_MAGIC_V3)) { in lov_getstripe() 447 if (lum.lmm_stripe_count && in lov_getstripe() 448 (lum.lmm_stripe_count < lsm->lsm_stripe_count)) { in lov_getstripe() 450 lum.lmm_stripe_count = lsm->lsm_stripe_count; in lov_getstripe() 451 rc = copy_to_user(lump, &lum, lum_size); in lov_getstripe() 463 CLASSERT(sizeof(lum) == sizeof(struct lov_mds_md_v3)); in lov_getstripe() 464 CLASSERT(sizeof(lum.lmm_objects[0]) == sizeof(lmmk->lmm_objects[0])); in lov_getstripe() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
D | obd.h | 189 static inline int lov_lum_lsm_cmp(struct lov_user_md *lum, in lov_lum_lsm_cmp() argument 192 if (lsm->lsm_magic != lum->lmm_magic) in lov_lum_lsm_cmp() 194 if ((lsm->lsm_stripe_count != 0) && (lum->lmm_stripe_count != 0) && in lov_lum_lsm_cmp() 195 (lsm->lsm_stripe_count != lum->lmm_stripe_count)) in lov_lum_lsm_cmp() 197 if ((lsm->lsm_stripe_size != 0) && (lum->lmm_stripe_size != 0) && in lov_lum_lsm_cmp() 198 (lsm->lsm_stripe_size != lum->lmm_stripe_size)) in lov_lum_lsm_cmp() 200 if ((lsm->lsm_pattern != 0) && (lum->lmm_pattern != 0) && in lov_lum_lsm_cmp() 201 (lsm->lsm_pattern != lum->lmm_pattern)) in lov_lum_lsm_cmp() 205 ((struct lov_user_md_v3 *)lum)->lmm_pool_name, in lov_lum_lsm_cmp() 213 struct lov_user_md *lum) in lov_lum_swab_if_needed() argument [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/ |
D | pack_generic.c | 2089 void lustre_swab_lmv_user_md(struct lmv_user_md *lum) in lustre_swab_lmv_user_md() argument 2093 __swab32s(&lum->lum_magic); in lustre_swab_lmv_user_md() 2094 __swab32s(&lum->lum_stripe_count); in lustre_swab_lmv_user_md() 2095 __swab32s(&lum->lum_stripe_offset); in lustre_swab_lmv_user_md() 2096 __swab32s(&lum->lum_hash_type); in lustre_swab_lmv_user_md() 2097 __swab32s(&lum->lum_type); in lustre_swab_lmv_user_md() 2098 CLASSERT(offsetof(typeof(*lum), lum_padding1) != 0); in lustre_swab_lmv_user_md() 2099 CLASSERT(offsetof(typeof(*lum), lum_padding2) != 0); in lustre_swab_lmv_user_md() 2100 CLASSERT(offsetof(typeof(*lum), lum_padding3) != 0); in lustre_swab_lmv_user_md() 2102 for (i = 0; i < lum->lum_stripe_count; i++) { in lustre_swab_lmv_user_md() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/ |
D | mdc_lib.c | 343 struct lov_user_md *lum = NULL; in mdc_setattr_pack() local 360 lum = req_capsule_client_get(&req->rq_pill, &RMF_EADATA); in mdc_setattr_pack() 362 lum->lmm_magic = LOV_USER_MAGIC_V1; in mdc_setattr_pack() 363 lum->lmm_stripe_size = 0; in mdc_setattr_pack() 364 lum->lmm_stripe_count = 0; in mdc_setattr_pack() 365 lum->lmm_stripe_offset = (typeof(lum->lmm_stripe_offset))(-1); in mdc_setattr_pack() 367 memcpy(lum, ea, ealen); in mdc_setattr_pack()
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
D | dir.c | 1324 struct lmv_user_md *lum; in ll_dir_ioctl() local 1351 lum = (struct lmv_user_md *)data->ioc_inlbuf2; in ll_dir_ioctl() 1354 if (lum->lum_magic != LMV_USER_MAGIC || in ll_dir_ioctl() 1355 lumlen != sizeof(*lum)) { in ll_dir_ioctl() 1357 filename, lum->lum_magic, lumlen, -EFAULT); in ll_dir_ioctl() 1366 rc = ll_dir_setdirstripe(inode, lum, filename); in ll_dir_ioctl() 1402 struct lmv_user_md lum; in ll_dir_ioctl() local 1408 if (copy_from_user(&lum, lump, sizeof(struct lmv_user_md))) in ll_dir_ioctl() 1411 if (lum.lum_magic != LMV_MAGIC_V1) in ll_dir_ioctl() 1421 *tmp = lum; in ll_dir_ioctl() [all …]
|
D | llite_internal.h | 767 int flags, struct lov_user_md *lum,
|
D | file.c | 1346 int flags, struct lov_user_md *lum, int lum_size) in ll_lov_setstripe_ea_info() argument 1362 rc = ll_intent_file_open(dentry, lum, lum_size, &oit); in ll_lov_setstripe_ea_info()
|
/linux-4.1.27/drivers/media/usb/gspca/ |
D | sonixb.c | 1359 int lum = sd->header[lum_offset] + in sd_pkt_scan() local 1369 if (lum == 0 && sd->prev_avg_lum != 0) { in sd_pkt_scan() 1370 lum = -1; in sd_pkt_scan() 1374 sd->prev_avg_lum = lum; in sd_pkt_scan() 1375 atomic_set(&sd->avg_lum, lum); in sd_pkt_scan()
|
/linux-4.1.27/drivers/staging/lustre/lustre/osc/ |
D | osc_request.c | 2594 struct lov_user_md_v3 lum, *lumk; in osc_getstripe() local 2604 if (copy_from_user(&lum, lump, lum_size)) in osc_getstripe() 2607 if ((lum.lmm_magic != LOV_USER_MAGIC_V1) && in osc_getstripe() 2608 (lum.lmm_magic != LOV_USER_MAGIC_V3)) in osc_getstripe() 2614 LASSERT(sizeof(lum.lmm_objects[0]) == sizeof(lumk->lmm_objects[0])); in osc_getstripe() 2618 if (lum.lmm_stripe_count > 0) { in osc_getstripe() 2619 lum_size = lov_mds_md_size(lum.lmm_stripe_count, lum.lmm_magic); in osc_getstripe() 2624 if (lum.lmm_magic == LOV_USER_MAGIC_V1) in osc_getstripe() 2631 lum_size = lov_mds_md_size(0, lum.lmm_magic); in osc_getstripe() 2632 lumk = &lum; in osc_getstripe() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/lmv/ |
D | lmv_obd.c | 1227 struct lmv_user_md *lum; in lmv_placement_policy() local 1229 lum = (struct lmv_user_md *)op_data->op_data; in lmv_placement_policy() 1230 if (lum->lum_type == LMV_STRIPE_TYPE && in lmv_placement_policy() 1231 lum->lum_stripe_offset != -1) { in lmv_placement_policy() 1232 if (lum->lum_stripe_offset >= lmv->desc.ld_tgt_count) { in lmv_placement_policy() 1235 lum->lum_stripe_offset, in lmv_placement_policy() 1239 *mds = lum->lum_stripe_offset; in lmv_placement_policy()
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/lustre/ |
D | lustre_user.h | 410 extern void lustre_swab_lmv_user_md(struct lmv_user_md *lum);
|
D | lustre_idl.h | 3354 extern void lustre_swab_lov_user_md_v1(struct lov_user_md_v1 *lum); 3355 extern void lustre_swab_lov_user_md_v3(struct lov_user_md_v3 *lum);
|