Whamcloud - gitweb
LU-3105 osd: remove capa related stuff from servers
[fs/lustre-release.git] / lustre / mdd / mdd_device.c
index 71e5d13..c5ac7e9 100644 (file)
@@ -1109,24 +1109,6 @@ static int mdd_statfs(const struct lu_env *env, struct md_device *m,
        RETURN(rc);
 }
 
-/*
- * No permission check is needed.
- */
-static int mdd_init_capa_ctxt(const struct lu_env *env, struct md_device *m,
-                              int mode, unsigned long timeout, __u32 alg,
-                              struct lustre_capa_key *keys)
-{
-        struct mdd_device *mdd = lu2mdd_dev(&m->md_lu_dev);
-        int rc;
-        ENTRY;
-
-        /* need barrier for mds_capa_keys access. */
-
-        rc = mdd_child_ops(mdd)->dt_init_capa_ctxt(env, mdd->mdd_child, mode,
-                                                   timeout, alg, keys);
-        RETURN(rc);
-}
-
 static int mdd_maxeasize_get(const struct lu_env *env, struct md_device *m,
                                int *easize)
 {
@@ -1138,14 +1120,6 @@ static int mdd_maxeasize_get(const struct lu_env *env, struct md_device *m,
        RETURN(0);
 }
 
-static int mdd_update_capa_key(const struct lu_env *env,
-                               struct md_device *m,
-                               struct lustre_capa_key *key)
-{
-       /* we do not support capabilities ... */
-       return -EINVAL;
-}
-
 static int mdd_llog_ctxt_get(const struct lu_env *env, struct md_device *m,
                              int idx, void **h)
 {
@@ -1522,8 +1496,6 @@ LU_TYPE_INIT_FINI(mdd, &mdd_thread_key);
 static const struct md_device_operations mdd_ops = {
        .mdo_statfs         = mdd_statfs,
        .mdo_root_get       = mdd_root_get,
-       .mdo_init_capa_ctxt = mdd_init_capa_ctxt,
-       .mdo_update_capa_key= mdd_update_capa_key,
        .mdo_llog_ctxt_get  = mdd_llog_ctxt_get,
        .mdo_iocontrol      = mdd_iocontrol,
        .mdo_maxeasize_get  = mdd_maxeasize_get,