diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-04 21:04:18 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-04 21:06:15 -0700 |
commit | 2011551d3e1039e6e6460bfb16c367a0ba542b0a (patch) | |
tree | a09c4ed6f879d40dba255130b2a1c1f1b0334bf6 /lib/cuse_lowlevel.c | |
parent | 595f7c39069786981b2441bf8f369bcf833a2320 (diff) | |
parent | ee07bb2d2eff97bcff85f77b657e0186c24cafe2 (diff) | |
download | libfuse-2011551d3e1039e6e6460bfb16c367a0ba542b0a.tar.gz |
Merge struct fuse_ll into struct fuse_session.
This merge merges struct fuse_ll into struct fuse_session. Since
there is always a one-to-one correspondence between the two,
there is little reason to keep them separate. By merging them,
we save pointers and lines of code.
Diffstat (limited to 'lib/cuse_lowlevel.c')
-rw-r--r-- | lib/cuse_lowlevel.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/cuse_lowlevel.c b/lib/cuse_lowlevel.c index 03ae9a6..c9aa47d 100644 --- a/lib/cuse_lowlevel.c +++ b/lib/cuse_lowlevel.c @@ -32,7 +32,7 @@ struct cuse_data { static struct cuse_lowlevel_ops *req_clop(fuse_req_t req) { - return &req->f->cuse_data->clop; + return &req->se->cuse_data->clop; } static void cuse_fll_open(fuse_req_t req, fuse_ino_t ino, @@ -152,7 +152,6 @@ struct fuse_session *cuse_lowlevel_new(struct fuse_args *args, struct fuse_lowlevel_ops lop; struct cuse_data *cd; struct fuse_session *se; - struct fuse_ll *ll; cd = cuse_prep_data(ci, clop); if (!cd) @@ -175,8 +174,7 @@ struct fuse_session *cuse_lowlevel_new(struct fuse_args *args, free(cd); return NULL; } - ll = se->f; - ll->cuse_data = cd; + se->cuse_data = cd; return se; } @@ -198,7 +196,7 @@ void cuse_lowlevel_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg) { struct fuse_init_in *arg = (struct fuse_init_in *) inarg; struct cuse_init_out outarg; - struct fuse_ll *f = req->f; + struct fuse_session *f = req->se; struct cuse_data *cd = f->cuse_data; size_t bufsize = f->bufsize; struct cuse_lowlevel_ops *clop = req_clop(req); |