-#define LL_IT2STR(it) ((it) ? ldlm_it2str((it)->it_op) : "0")
-#define MEA_SIZE_LMV(lmv) \
- ((lmv)->desc.ld_tgt_count * sizeof(struct ll_fid) + sizeof(struct mea))
-
-struct lmv_inode {
- struct ll_fid fid; /* fid of dirobj */
- unsigned long size;
- int flags;
-};
-
-struct lmv_obj {
- struct list_head list;
- atomic_t count;
- struct ll_fid fid; /* master fid of dir */
- void *update; /* bitmap of status (uptodate) */
- int objcount;
- struct lmv_inode *objs; /* array of dirobjs */
- struct obd_device *obd; /* pointer to LMV itself */
-};
-
-int lmv_dirobj_blocking_ast(struct ldlm_lock *,
- struct ldlm_lock_desc *,
- void *, int);
-
-void lmv_put_obj(struct lmv_obj *obj);
-struct lmv_obj *lmv_get_obj(struct lmv_obj *obj);
-
-int lmv_setup_mgr(struct obd_device *obd);
-void lmv_cleanup_mgr(struct obd_device *obd);
-
-struct lmv_obj *lmv_grab_obj(struct obd_device *obd,
- struct ll_fid *fid);
-
-int lmv_create_obj(struct obd_export *exp, struct ll_fid *fid,
- struct mea *mea);
-
-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);