Home
last modified time | relevance | path

Searched refs:lmv (Results 1 – 10 of 10) sorted by relevance

/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c58 static void lmv_activate_target(struct lmv_obd *lmv, in lmv_activate_target() argument
66 lmv->desc.ld_active_tgt_count += (activate ? 1 : -1); in lmv_activate_target()
76 static int lmv_set_mdc_active(struct lmv_obd *lmv, struct obd_uuid *uuid, in lmv_set_mdc_active() argument
85 lmv, uuid->uuid, activate); in lmv_set_mdc_active()
87 spin_lock(&lmv->lmv_lock); in lmv_set_mdc_active()
88 for (i = 0; i < lmv->desc.ld_tgt_count; i++) { in lmv_set_mdc_active()
89 tgt = lmv->tgts[i]; in lmv_set_mdc_active()
100 if (i == lmv->desc.ld_tgt_count) { in lmv_set_mdc_active()
124 lmv_activate_target(lmv, tgt, activate); in lmv_set_mdc_active()
127 spin_unlock(&lmv->lmv_lock); in lmv_set_mdc_active()
[all …]
Dlproc_lmv.c52 desc = &dev->u.lmv.desc; in numobd_show()
85 struct lmv_obd *lmv; in placement_show() local
87 lmv = &dev->u.lmv; in placement_show()
88 return sprintf(buf, "%s\n", placement_policy2name(lmv->lmv_placement)); in placement_show()
101 struct lmv_obd *lmv = &dev->u.lmv; in placement_store() local
114 spin_lock(&lmv->lmv_lock); in placement_store()
115 lmv->lmv_placement = policy; in placement_store()
116 spin_unlock(&lmv->lmv_lock); in placement_store()
131 desc = &dev->u.lmv.desc; in activeobd_show()
139 struct lmv_obd *lmv; in lmv_desc_uuid_seq_show() local
[all …]
Dlmv_internal.h45 #define lmv_init_lock(lmv) mutex_lock(&lmv->init_mutex) argument
46 #define lmv_init_unlock(lmv) mutex_unlock(&lmv->init_mutex) argument
73 int lmv_fld_lookup(struct lmv_obd *lmv, const struct lu_fid *fid, u32 *mds);
74 int __lmv_fid_alloc(struct lmv_obd *lmv, struct lu_fid *fid, u32 mds);
104 static inline int lmv_get_easize(struct lmv_obd *lmv) in lmv_get_easize() argument
107 lmv->desc.ld_tgt_count * in lmv_get_easize()
112 lmv_get_target(struct lmv_obd *lmv, u32 mds) in lmv_get_target() argument
114 int count = lmv->desc.ld_tgt_count; in lmv_get_target()
118 if (lmv->tgts[i] == NULL) in lmv_get_target()
121 if (lmv->tgts[i]->ltd_idx == mds) in lmv_get_target()
[all …]
Dlmv_fld.c54 int lmv_fld_lookup(struct lmv_obd *lmv, in lmv_fld_lookup() argument
66 rc = fld_client_lookup(&lmv->lmv_fld, fid_seq(fid), mds, in lmv_fld_lookup()
77 if (*mds >= lmv->desc.ld_tgt_count) { in lmv_fld_lookup()
78 …CERROR("FLD lookup got invalid mds #%x (max: %x) for fid=" DFID "\n", *mds, lmv->desc.ld_tgt_count, in lmv_fld_lookup()
Dlmv_intent.c62 struct lmv_obd *lmv = &obd->u.lmv; in lmv_intent_remote() local
96 tgt = lmv_find_target(lmv, &body->fid1); in lmv_intent_remote()
166 struct lmv_obd *lmv = &obd->u.lmv; in lmv_intent_open() local
171 tgt = lmv_locate_mds(lmv, op_data, &op_data->op_fid1); in lmv_intent_open()
249 struct lmv_obd *lmv = &obd->u.lmv; in lmv_intent_lookup() local
254 tgt = lmv_locate_mds(lmv, op_data, &op_data->op_fid1); in lmv_intent_lookup()
DMakefile1 obj-$(CONFIG_LUSTRE_FS) += lmv.o
2 lmv-y := lmv_obd.o lmv_intent.o lmv_fld.o lproc_lmv.o
/drivers/staging/lustre/lustre/
DMakefile2 fid/ lov/ mdc/ lmv/ llite/ obdecho/
/drivers/staging/lustre/
Dsysfs-fs-lustre449 and lmv)
457 devices like lov lmv)
465 like lov lmv)
473 devices like lov lmv) that is actually available for use
625 What: /sys/fs/lustre/lmv/{connection_name}/numobd
631 What: /sys/fs/lustre/lmv/{connection_name}/activeobd
638 What: /sys/fs/lustre/lmv/{connection_name}/placement
/drivers/staging/lustre/lustre/mdc/
Dmdc_request.c501 struct lov_mds_md *lmv; in mdc_get_lustre_md() local
517 lmv = req_capsule_server_sized_get(pill, &RMF_MDT_MD, in mdc_get_lustre_md()
519 if (!lmv) { in mdc_get_lustre_md()
524 rc = obd_unpackmd(md_exp, (void *)&md->mea, lmv, in mdc_get_lustre_md()
/drivers/staging/lustre/lustre/include/
Dobd.h776 struct lmv_obd lmv; member