X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmdd%2Fmdd_device.c;h=ebefc2f1424c4fc6666f8d68cf7e22ba4407cdda;hp=17000c14b5206db38ac1e308e468be65ca742dda;hb=60a9fd37185edf57fc42bf6a5ad9b9c61fc10e14;hpb=9219ce0081c665ec42a83ee10fb44cf1ace5e932 diff --git a/lustre/mdd/mdd_device.c b/lustre/mdd/mdd_device.c index 17000c1..ebefc2f 100644 --- a/lustre/mdd/mdd_device.c +++ b/lustre/mdd/mdd_device.c @@ -1396,22 +1396,6 @@ static struct obd_ops mdd_obd_device_ops = { .o_health_check = mdd_obd_health_check }; -/* context key constructor/destructor: mdd_ucred_key_init, mdd_ucred_key_fini */ -LU_KEY_INIT_FINI(mdd_ucred, struct md_ucred); - -static struct lu_context_key mdd_ucred_key = { - .lct_tags = LCT_SESSION, - .lct_init = mdd_ucred_key_init, - .lct_fini = mdd_ucred_key_fini -}; - -struct md_ucred *md_ucred(const struct lu_env *env) -{ - LASSERT(env->le_ses != NULL); - return lu_context_key_get(env->le_ses, &mdd_ucred_key); -} -EXPORT_SYMBOL(md_ucred); - /* * context key constructor/destructor: * mdd_capainfo_key_init, mdd_capainfo_key_fini @@ -1686,7 +1670,7 @@ static int mdd_iocontrol(const struct lu_env *env, struct md_device *m, } /* type constructor/destructor: mdd_type_init, mdd_type_fini */ -LU_TYPE_INIT_FINI(mdd, &mdd_thread_key, &mdd_ucred_key, &mdd_capainfo_key); +LU_TYPE_INIT_FINI(mdd, &mdd_thread_key, &mdd_capainfo_key); const struct md_device_operations mdd_ops = { .mdo_statfs = mdd_statfs,