*/
int (*dio_index_insert)(struct lu_context *ctxt,
struct dt_object *dt,
- struct lu_fid *fid, const char *name,
+ const struct lu_fid *fid, const char *name,
struct thandle *handle);
/*
* precondition: lu_object_exists(ctxt, &dt->do_lu);
*/
int (*dio_index_delete)(struct lu_context *ctxt,
struct dt_object *dt,
- struct lu_fid *fid, const char *name,
+ const struct lu_fid *fid, const char *name,
struct thandle *handle);
};
RETURN(rc);
}
-static struct lu_fid *mdd_object_getfid(struct mdd_object *obj)
+static const struct lu_fid *mdd_object_getfid(struct mdd_object *obj)
{
return lu_object_fid(&obj->mod_obj.mo_lu);
}
*/
unsigned long mdt_num_threads;
-static int mdt_handle (struct ptlrpc_request *req);
-static struct mdt_device *mdt_dev (struct lu_device *d);
-static struct lu_fid *mdt_object_fid(struct mdt_object *o);
+static int mdt_handle (struct ptlrpc_request *req);
+static struct mdt_device *mdt_dev (struct lu_device *d);
+static const struct lu_fid *mdt_object_fid(struct mdt_object *o);
static struct lu_context_key mdt_thread_key;
static struct lu_object_operations mdt_obj_ops;
lu_object_put(ctxt, &o->mot_obj.mo_lu);
}
-static struct lu_fid *mdt_object_fid(struct mdt_object *o)
+static const struct lu_fid *mdt_object_fid(struct mdt_object *o)
{
return lu_object_fid(&o->mot_obj.mo_lu);
}