struct lustre_handle **rconn);
int mdc_enqueue(struct lustre_handle *conn, int lock_type,
- struct lookup_intent *it, int lock_mode, struct inode *dir,
- struct dentry *de, struct lustre_handle *h, __u64 id,
- char *tgt, int tgtlen, void *data, int datalen);
+ struct lookup_intent *it, int lock_mode, struct inode *dir,
+ struct dentry *de, struct lustre_handle *lockh, char *tgt,
+ int tgtlen, void *data, int datalen);
int mdc_getlovinfo(struct obd_device *obd, struct lustre_handle *mdc_connh,
uuid_t **uuids, struct ptlrpc_request **request);
int mdc_getstatus(struct lustre_handle *conn,
res = ldlm_resource_get(ns, NULL, res_id, 0, 0);
if (res == NULL)
- RETURN(-ENOMEM);
+ RETURN(-EINVAL);
l_lock(&ns->ns_lock);
list_for_each(tmp, &res->lr_granted) {
conn.addr = req->rq_reqmsg->addr;
conn.cookie = req->rq_reqmsg->cookie;
- rc = lustre_pack_msg(0, NULL, NULL, &req->rq_replen, &req->rq_repmsg);
+ rc = obd_connect(&conn, target, cluuid);
if (rc)
GOTO(out, rc);
- rc = obd_connect(&conn, target, cluuid);
+ rc = lustre_pack_msg(0, NULL, NULL, &req->rq_replen, &req->rq_repmsg);
if (rc)
GOTO(out, rc);
req->rq_repmsg->addr = conn.addr;
int mdc_enqueue(struct lustre_handle *conn, int lock_type,
struct lookup_intent *it, int lock_mode, struct inode *dir,
- struct dentry *de, struct lustre_handle *lockh, __u64 id,
+ struct dentry *de, struct lustre_handle *lockh,
char *tgt, int tgtlen, void *data, int datalen)
{
struct ptlrpc_request *req;
lit->opc = NTOH__u64((__u64)it->it_op);
/* pack the intended request */
- mds_create_pack(req, 2, dir, it->it_mode, id, current->fsuid,
+ mds_create_pack(req, 2, dir, it->it_mode, 0, current->fsuid,
current->fsgid, CURRENT_TIME, de->d_name.name,
de->d_name.len, tgt, tgtlen);
req->rq_replen = lustre_msg_size(3, repsize);