dparent = mds_id2dentry(obd, &body->id1, NULL);
LASSERT(!IS_ERR(dparent));
dchild = ll_lookup_one_len(name, dparent, namesize - 1);
- if (IS_ERR(dchild)) {
- DEBUG_REQ(D_ERROR, req, "resent, not enqueuing new locks");
- CDEBUG(D_ERROR, "lock against [%lu:%lu]/%*s\n",
- (unsigned long) id_ino(&body->id1),
- (unsigned long) id_gen(&body->id1),
- namesize - 1, name);
- }
LASSERT(!IS_ERR(dchild));
} else {
/* client wants to get attr. by id */
dchild = mds_id2dentry(obd, &body->id1, NULL);
- if (IS_ERR(dchild)) {
- DEBUG_REQ(D_ERROR, req, "resent, not enqueuing new locks");
- CDEBUG(D_ERROR, "lock against [%lu:%lu]\n",
- (unsigned long) id_ino(&body->id1),
- (unsigned long) id_gen(&body->id1));
- }
LASSERT(!IS_ERR(dchild));
}
LDLM_LOCK_PUT(granted_lock);