Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352902
b: refs/heads/master
c: 6a4e922
h: refs/heads/master
v: v3
  • Loading branch information
Eric Wong authored and Miklos Szeredi committed Feb 4, 2013
1 parent 43bb98d commit 1493ec2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 23c153e54197171f30b889d9654929d74b6599d5
refs/heads/master: 6a4e922c3db06f7da27e072729e047185c2fba66
13 changes: 10 additions & 3 deletions trunk/fs/fuse/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,8 @@ __acquires(fc->lock)
}
}

void fuse_request_send(struct fuse_conn *fc, struct fuse_req *req)
static void __fuse_request_send(struct fuse_conn *fc, struct fuse_req *req)
{
req->isreply = 1;
spin_lock(&fc->lock);
if (!fc->connected)
req->out.h.error = -ENOTCONN;
Expand All @@ -459,6 +458,12 @@ void fuse_request_send(struct fuse_conn *fc, struct fuse_req *req)
}
spin_unlock(&fc->lock);
}

void fuse_request_send(struct fuse_conn *fc, struct fuse_req *req)
{
req->isreply = 1;
__fuse_request_send(fc, req);
}
EXPORT_SYMBOL_GPL(fuse_request_send);

static void fuse_request_send_nowait_locked(struct fuse_conn *fc,
Expand Down Expand Up @@ -541,7 +546,9 @@ void fuse_force_forget(struct file *file, u64 nodeid)
req->in.args[0].size = sizeof(inarg);
req->in.args[0].value = &inarg;
req->isreply = 0;
fuse_request_send_nowait(fc, req);
__fuse_request_send(fc, req);
/* ignore errors */
fuse_put_request(fc, req);
}

/*
Expand Down

0 comments on commit 1493ec2

Please sign in to comment.