-int lmv_dirobj_blocking_ast(struct ldlm_lock *,
- struct ldlm_lock_desc *, void *, int);
-struct lmv_obj *lmv_grab_obj(struct obd_device *obd,
- struct ll_fid *fid, int create);
-void lmv_put_obj(struct lmv_obj *obj);
-
-int lmv_intent_lock(struct obd_export *, struct ll_uctxt *,
- struct ll_fid *, const char *, int, void *, int,
- struct ll_fid *, struct lookup_intent *, int,
- struct ptlrpc_request **, ldlm_blocking_callback);
-int lmv_intent_lookup(struct obd_export *, struct ll_uctxt *,
- struct ll_fid *, const char *, int, void *, int,
- struct ll_fid *, struct lookup_intent *, int,
- struct ptlrpc_request **, ldlm_blocking_callback);
-int lmv_intent_getattr(struct obd_export *, struct ll_uctxt *,
- struct ll_fid *, const char *, int, void *, int,
- struct ll_fid *, struct lookup_intent *, int,
- struct ptlrpc_request **, ldlm_blocking_callback);
-int lmv_intent_open(struct obd_export *, struct ll_uctxt *,
- struct ll_fid *, const char *, int, void *, int,
- struct ll_fid *, struct lookup_intent *, int,
- struct ptlrpc_request **, ldlm_blocking_callback);
-int lmv_create_obj_from_attrs(struct obd_export *, struct ll_fid *,
- struct mea *);
+int lmv_object_setup(struct obd_device *obd);
+void lmv_object_cleanup(struct obd_device *obd);
+
+static inline void
+lmv_object_lock(struct lmv_object *obj)
+{
+ LASSERT(obj);
+ mutex_lock(&obj->lo_guard);
+}
+
+static inline void
+lmv_object_unlock(struct lmv_object *obj)
+{
+ LASSERT(obj);
+ mutex_unlock(&obj->lo_guard);
+}
+
+void lmv_object_add(struct lmv_object *obj);
+void lmv_object_del(struct lmv_object *obj);
+
+void lmv_object_put(struct lmv_object *obj);
+void lmv_object_put_unlock(struct lmv_object *obj);
+void lmv_object_free(struct lmv_object *obj);
+
+struct lmv_object *lmv_object_get(struct lmv_object *obj);
+
+struct lmv_object *lmv_object_find(struct obd_device *obd,
+ const struct lu_fid *fid);
+
+struct lmv_object *lmv_object_find_lock(struct obd_device *obd,
+ const struct lu_fid *fid);
+
+struct lmv_object *lmv_object_alloc(struct obd_device *obd,
+ const struct lu_fid *fid,
+ struct lmv_stripe_md *mea);
+
+struct lmv_object *lmv_object_create(struct obd_export *exp,
+ const struct lu_fid *fid,
+ struct lmv_stripe_md *mea);
+
+int lmv_object_delete(struct obd_export *exp,
+ const struct lu_fid *fid);
+