/drivers/staging/lustre/lustre/lov/ |
D | lov_ea.c | 56 static int lsm_lmm_verify_common(struct lov_mds_md *lmm, int lmm_bytes, in lsm_lmm_verify_common() argument 61 lov_dump_lmm_common(D_WARNING, lmm); in lsm_lmm_verify_common() 65 if (lmm_oi_id(&lmm->lmm_oi) == 0) { in lsm_lmm_verify_common() 67 lov_dump_lmm_common(D_WARNING, lmm); in lsm_lmm_verify_common() 71 if (lov_pattern(le32_to_cpu(lmm->lmm_pattern)) != LOV_PATTERN_RAID0) { in lsm_lmm_verify_common() 73 lov_dump_lmm_common(D_WARNING, lmm); in lsm_lmm_verify_common() 77 if (lmm->lmm_stripe_size == 0 || in lsm_lmm_verify_common() 78 (le32_to_cpu(lmm->lmm_stripe_size)&(LOV_MIN_STRIPE_SIZE-1)) != 0) { in lsm_lmm_verify_common() 80 le32_to_cpu(lmm->lmm_stripe_size)); in lsm_lmm_verify_common() 81 lov_dump_lmm_common(D_WARNING, lmm); in lsm_lmm_verify_common() [all …]
|
D | lov_pack.c | 55 struct lov_mds_md *lmm = lmmp; in lov_dump_lmm_common() local 58 lmm_oi_le_to_cpu(&oi, &lmm->lmm_oi); in lov_dump_lmm_common() 60 POSTID(&oi), le32_to_cpu(lmm->lmm_magic), in lov_dump_lmm_common() 61 le32_to_cpu(lmm->lmm_pattern)); in lov_dump_lmm_common() 63 le32_to_cpu(lmm->lmm_stripe_size), in lov_dump_lmm_common() 64 le16_to_cpu(lmm->lmm_stripe_count), in lov_dump_lmm_common() 65 le16_to_cpu(lmm->lmm_layout_gen)); in lov_dump_lmm_common() 88 void lov_dump_lmm_v1(int level, struct lov_mds_md_v1 *lmm) in lov_dump_lmm_v1() argument 90 lov_dump_lmm_common(level, lmm); in lov_dump_lmm_v1() 91 lov_dump_lmm_objects(level, lmm->lmm_objects, in lov_dump_lmm_v1() [all …]
|
D | lov_internal.h | 210 int lov_packmd(struct obd_export *exp, struct lov_mds_md **lmm, 213 struct lov_mds_md *lmm, int lmm_bytes); 220 void lov_dump_lmm_v1(int level, struct lov_mds_md_v1 *lmm); 221 void lov_dump_lmm_v3(int level, struct lov_mds_md_v3 *lmm);
|
/drivers/staging/lustre/lustre/lmv/ |
D | lmv_intent.c | 54 static int lmv_intent_remote(struct obd_export *exp, void *lmm, in lmv_intent_remote() argument 125 rc = md_intent_lock(tgt->ltd_exp, op_data, lmm, lmmsize, it, in lmv_intent_remote() 160 void *lmm, int lmmsize, struct lookup_intent *it, in lmv_intent_open() argument 193 rc = md_intent_lock(tgt->ltd_exp, op_data, lmm, lmmsize, it, flags, in lmv_intent_open() 219 rc = lmv_intent_remote(exp, lmm, lmmsize, it, &op_data->op_fid1, flags, in lmv_intent_open() 243 void *lmm, int lmmsize, struct lookup_intent *it, in lmv_intent_lookup() argument 269 rc = md_intent_lock(tgt->ltd_exp, op_data, lmm, lmmsize, it, in lmv_intent_lookup() 286 rc = lmv_intent_remote(exp, lmm, lmmsize, it, NULL, flags, reqp, in lmv_intent_lookup() 293 void *lmm, int lmmsize, struct lookup_intent *it, in lmv_intent_lock() argument 313 rc = lmv_intent_lookup(exp, op_data, lmm, lmmsize, it, in lmv_intent_lock() [all …]
|
D | lmv_internal.h | 54 void *lmm, int lmmsize, struct lookup_intent *it, 60 void *lmm, int lmmsize, struct lookup_intent *it, 66 void *lmm, int lmmsize, struct lookup_intent *it,
|
D | lmv_obd.c | 1689 struct lustre_handle *lockh, void *lmm, int lmmsize, in lmv_enqueue_remote() argument 1740 lmm, lmmsize, NULL, extra_lock_flags); in lmv_enqueue_remote() 1750 struct lustre_handle *lockh, void *lmm, int lmmsize, in lmv_enqueue() argument 1773 lmm, lmmsize, req, extra_lock_flags); in lmv_enqueue() 1777 lmm, lmmsize, extra_lock_flags); in lmv_enqueue() 2435 struct lov_mds_md *lmm, int lmm_size) in lmv_unpackmd() argument 2439 struct lmv_stripe_md *mea = (struct lmv_stripe_md *)lmm; in lmv_unpackmd() 2449 if (*lsmp != NULL && lmm == NULL) { in lmv_unpackmd() 2461 if (!lmm) in lmv_unpackmd()
|
/drivers/staging/lustre/lustre/mdc/ |
D | mdc_locks.c | 275 void *lmm, int lmmsize, in mdc_intent_open_pack() argument 345 mdc_open_pack(req, op_data, it->it_create_mode, 0, it->it_flags, lmm, in mdc_intent_open_pack() 666 void *lmm; in mdc_finish_enqueue() local 681 lmm = req_capsule_client_get(pill, &RMF_EADATA); in mdc_finish_enqueue() 682 if (lmm) in mdc_finish_enqueue() 683 memcpy(lmm, eadata, body->eadatasize); in mdc_finish_enqueue() 711 void *lmm; in mdc_finish_enqueue() local 716 lmm = libcfs_kvzalloc(lvb_len, GFP_NOFS); in mdc_finish_enqueue() 717 if (lmm == NULL) { in mdc_finish_enqueue() 721 memcpy(lmm, lvb_data, lvb_len); in mdc_finish_enqueue() [all …]
|
D | mdc_internal.h | 84 void *lmm, int lmmsize, 91 struct lustre_handle *lockh, void *lmm, int lmmsize, 102 struct lov_mds_md *lmm, int lmm_size, struct lustre_handle *fh,
|
D | mdc_lib.c | 181 __u32 mode, __u64 rdev, __u64 flags, const void *lmm, in mdc_open_pack() argument 216 if (lmm) { in mdc_open_pack() 219 memcpy(tmp, lmm, lmmlen); in mdc_open_pack()
|
D | mdc_request.c | 465 struct lov_mds_md *lmm; in mdc_get_lustre_md() local 481 lmm = req_capsule_server_sized_get(pill, &RMF_MDT_MD, lmmsize); in mdc_get_lustre_md() 482 if (!lmm) { in mdc_get_lustre_md() 487 rc = obd_unpackmd(dt_exp, &md->lsm, lmm, lmmsize); in mdc_get_lustre_md()
|
/drivers/staging/lustre/lustre/llite/ |
D | dir.c | 793 struct lov_mds_md *lmm = NULL; in ll_dir_getstripe() local 829 lmm = req_capsule_server_sized_get(&req->rq_pill, in ll_dir_getstripe() 831 LASSERT(lmm != NULL); in ll_dir_getstripe() 839 switch (le32_to_cpu(lmm->lmm_magic)) { in ll_dir_getstripe() 842 lustre_swab_lov_user_md_v1((struct lov_user_md_v1 *)lmm); in ll_dir_getstripe() 846 lustre_swab_lov_user_md_v3((struct lov_user_md_v3 *)lmm); in ll_dir_getstripe() 849 CERROR("unknown magic: %lX\n", (unsigned long)lmm->lmm_magic); in ll_dir_getstripe() 853 *lmmp = lmm; in ll_dir_getstripe() 1448 struct lov_mds_md *lmm = NULL; in ll_dir_ioctl() local 1459 rc = ll_lov_getstripe_ea_info(inode, filename, &lmm, in ll_dir_ioctl() [all …]
|
D | xattr.c | 473 struct lov_mds_md *lmm = NULL; in ll_getxattr() local 490 rc = ll_dir_getstripe(inode, &lmm, in ll_getxattr() 498 rc = obd_packmd(ll_i2dtexp(inode), &lmm, lsm); in ll_getxattr() 523 memcpy(lump, lmm, lmmsize); in ll_getxattr() 533 else if (lmm) in ll_getxattr() 534 obd_free_diskmd(ll_i2dtexp(inode), &lmm); in ll_getxattr() 545 struct lov_mds_md *lmm = NULL; in ll_listxattr() local 587 rc2 = ll_dir_getstripe(inode, &lmm, &lmmsize, &request); in ll_listxattr()
|
D | file.c | 386 static int ll_intent_file_open(struct dentry *dentry, void *lmm, in ll_intent_file_open() argument 408 if (lmm == NULL && lmmsize == 0) { in ll_intent_file_open() 421 rc = md_intent_lock(sbi->ll_md_exp, op_data, lmm, lmmsize, itp, in ll_intent_file_open() 1379 struct lov_mds_md *lmm = NULL; in ll_lov_getstripe_ea_info() local 1414 lmm = req_capsule_server_sized_get(&req->rq_pill, &RMF_MDT_MD, lmmsize); in ll_lov_getstripe_ea_info() 1415 LASSERT(lmm != NULL); in ll_lov_getstripe_ea_info() 1417 if ((lmm->lmm_magic != cpu_to_le32(LOV_MAGIC_V1)) && in ll_lov_getstripe_ea_info() 1418 (lmm->lmm_magic != cpu_to_le32(LOV_MAGIC_V3))) { in ll_lov_getstripe_ea_info() 1431 stripe_count = le16_to_cpu(lmm->lmm_stripe_count); in ll_lov_getstripe_ea_info() 1432 if (le32_to_cpu(lmm->lmm_pattern) & LOV_PATTERN_F_RELEASED) in ll_lov_getstripe_ea_info() [all …]
|
D | llite_internal.h | 736 struct lov_mds_md **lmm, int *lmm_size,
|
/drivers/staging/lustre/lustre/include/lustre/ |
D | lustre_idl.h | 1640 struct lov_mds_md_v1 lmm; in lov_mds_md_max_stripe_count() local 1642 if (buf_size < sizeof(lmm)) in lov_mds_md_max_stripe_count() 1645 return (buf_size - sizeof(lmm)) / sizeof(lmm.lmm_objects[0]); in lov_mds_md_max_stripe_count() 1648 struct lov_mds_md_v3 lmm; in lov_mds_md_max_stripe_count() local 1650 if (buf_size < sizeof(lmm)) in lov_mds_md_max_stripe_count() 1653 return (buf_size - sizeof(lmm)) / sizeof(lmm.lmm_objects[0]); in lov_mds_md_max_stripe_count() 3335 void lustre_swab_lov_mds_md(struct lov_mds_md *lmm);
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | pack_generic.c | 1952 void lustre_swab_lov_mds_md(struct lov_mds_md *lmm) in lustre_swab_lov_mds_md() argument 1955 __swab32s(&lmm->lmm_magic); in lustre_swab_lov_mds_md() 1956 __swab32s(&lmm->lmm_pattern); in lustre_swab_lov_mds_md() 1957 lustre_swab_lmm_oi(&lmm->lmm_oi); in lustre_swab_lov_mds_md() 1958 __swab32s(&lmm->lmm_stripe_size); in lustre_swab_lov_mds_md() 1959 __swab16s(&lmm->lmm_stripe_count); in lustre_swab_lov_mds_md() 1960 __swab16s(&lmm->lmm_layout_gen); in lustre_swab_lov_mds_md()
|
/drivers/staging/lustre/lustre/osc/ |
D | osc_request.c | 141 struct lov_mds_md *lmm, int lmm_bytes) in osc_unpackmd() argument 146 if (lmm != NULL) { in osc_unpackmd() 147 if (lmm_bytes < sizeof(*lmm)) { in osc_unpackmd() 150 (int)sizeof(*lmm)); in osc_unpackmd() 155 if (unlikely(ostid_id(&lmm->lmm_oi) == 0)) { in osc_unpackmd() 166 if (*lsmp != NULL && lmm == NULL) { in osc_unpackmd() 188 if (lmm != NULL) in osc_unpackmd() 190 ostid_le_to_cpu(&lmm->lmm_oi, &(*lsmp)->lsm_oi); in osc_unpackmd()
|
/drivers/staging/lustre/lustre/include/ |
D | obd_class.h | 1460 void *lmm, int lmmsize, in md_enqueue() argument 1469 lmm, lmmsize, req, extra_lock_flags); in md_enqueue() 1486 struct md_op_data *op_data, void *lmm, in md_intent_lock() argument 1496 rc = MDP(exp->exp_obd, intent_lock)(exp, op_data, lmm, lmmsize, in md_intent_lock()
|
D | obd.h | 1226 int (*lsm_lmm_verify)(struct lov_mds_md *lmm, int lmm_bytes, 1229 struct lov_mds_md *lmm);
|