-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_obj_setup(struct obd_device *obd);
+void lmv_obj_cleanup(struct obd_device *obd);
+
+static inline void
+lmv_obj_lock(struct lmv_obj *obj)
+{
+ LASSERT(obj);
+ down(&obj->lo_guard);
+}
+
+static inline void
+lmv_obj_unlock(struct lmv_obj *obj)
+{
+ LASSERT(obj);
+ up(&obj->lo_guard);
+}
+
+void lmv_obj_add(struct lmv_obj *obj);
+void lmv_obj_del(struct lmv_obj *obj);
+
+void lmv_obj_put(struct lmv_obj *obj);
+void lmv_obj_free(struct lmv_obj *obj);
+
+struct lmv_obj *lmv_obj_get(struct lmv_obj *obj);
+
+struct lmv_obj *lmv_obj_grab(struct obd_device *obd,
+ const struct lu_fid *fid);
+
+struct lmv_obj *lmv_obj_alloc(struct obd_device *obd,
+ const struct lu_fid *fid,
+ struct lmv_stripe_md *mea);
+
+struct lmv_obj *lmv_obj_create(struct obd_export *exp,
+ const struct lu_fid *fid,
+ struct lmv_stripe_md *mea);
+
+int lmv_obj_delete(struct obd_export *exp,
+ const struct lu_fid *fid);
+