destroy_req(req);
}
-static struct fuse_req *fuse_ll_alloc_req(struct fuse_ll *f)
+static struct fuse_req *fuse_ll_alloc_req(struct fuse_session *se)
{
struct fuse_req *req;
if (req == NULL) {
fprintf(stderr, "fuse: failed to allocate request\n");
} else {
- req->f = f;
+ req->f = se->f;
+ req->se = se;
req->ctr = 1;
list_init_req(req);
fuse_mutex_init(&req->lock);
struct fuse_forget_one *forget = ¶m[i];
struct fuse_req *dummy_req;
- dummy_req = fuse_ll_alloc_req(req->f);
+ dummy_req = fuse_ll_alloc_req(req->se);
if (dummy_req == NULL)
break;
(unsigned long long) in->nodeid, buf->size, in->pid);
}
- req = fuse_ll_alloc_req(f);
+ req = fuse_ll_alloc_req(se);
if (req == NULL) {
struct fuse_out_header out = {
.unique = in->unique,