it->it_data = NULL;
GOTO(drop_req, rc = it->it_status);
}
- it->it_data = dentry;
/* Fall through to update attibutes. */
} else if (it->it_op & (IT_UNLINK | IT_RMDIR)) {
/* For remove ops, we want the lookup to succeed unless
ptlrpc_req_finished(request);
}
+ if (it->it_disposition && it->it_op & (IT_RENAME | IT_LINK))
+ it->it_data = dentry;
+
/* this places the intent in the dentry so that the vfs_xxx
* operation can lay its hands on it; but that is not
* always needed...