diff options
author | 2016-03-28 13:48:15 -0700 | |
---|---|---|
committer | 2016-03-29 13:18:16 -0700 | |
commit | f00795452566901e80d1094e81f9c26461b2a9cd (patch) | |
tree | b0c469da2b1426c368099886881592f9b4dfa444 /lib/fuse_lowlevel.c | |
parent | 83c730ca8ee5d567e6a4cefa568353ab1bad0be2 (diff) |
Inlined fuse_chan_fd
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rwxr-xr-x | lib/fuse_lowlevel.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index 3acb663..4fe3678 100755 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -160,9 +160,9 @@ static struct fuse_req *fuse_ll_alloc_req(struct fuse_ll *f) void fuse_chan_close(struct fuse_chan *ch) { - int fd = fuse_chan_fd(ch); + int fd = ch->fd; if (fd != -1) - close(fd); + close(fd); } @@ -188,7 +188,7 @@ static int fuse_send_msg(struct fuse_ll *f, struct fuse_chan *ch, } } - ssize_t res = writev(fuse_chan_fd(ch), iov, count); + ssize_t res = writev(ch->fd, iov, count); int err = errno; if (res == -1) { @@ -777,7 +777,7 @@ static int fuse_send_data_iov(struct fuse_ll *f, struct fuse_chan *ch, splice_flags |= SPLICE_F_MOVE; res = splice(llp->pipe[0], NULL, - fuse_chan_fd(ch), NULL, out->len, splice_flags); + ch->fd, NULL, out->len, splice_flags); if (res == -1) { res = -errno; perror("fuse: splice from pipe"); @@ -2728,7 +2728,7 @@ int fuse_session_receive_buf(struct fuse_session *se, struct fuse_buf *buf, goto fallback; } - res = splice(fuse_chan_fd(ch), NULL, llp->pipe[1], NULL, bufsize, 0); + res = splice(ch->fd, NULL, llp->pipe[1], NULL, bufsize, 0); err = errno; if (fuse_session_exited(se)) @@ -2812,7 +2812,7 @@ fallback: } restart: - res = read(fuse_chan_fd(ch), buf->mem, f->bufsize); + res = read(ch->fd, buf->mem, f->bufsize); err = errno; if (fuse_session_exited(se)) |