Browse Source

Merge pull request #1105 from trapexit/ll

Misc cleanup
foo
trapexit 2 years ago
committed by GitHub
parent
commit
ac1f4b4d52
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      libfuse/lib/fuse.c

22
libfuse/lib/fuse.c

@ -1715,15 +1715,6 @@ fuse_lib_lookup(fuse_req_t req,
reply_entry(req,&e,err);
}
static
void
do_forget(struct fuse *f,
const uint64_t nodeid,
const uint64_t nlookup)
{
forget_node(f,nodeid,nlookup);
}
static
void
fuse_lib_forget(fuse_req_t req,
@ -1735,7 +1726,8 @@ fuse_lib_forget(fuse_req_t req,
f = req_fuse(req);
arg = fuse_hdr_arg(hdr_);
do_forget(f,hdr_->nodeid,arg->nlookup);
forget_node(f,hdr_->nodeid,arg->nlookup);
fuse_reply_none(req);
}
@ -1753,7 +1745,9 @@ fuse_lib_forget_multi(fuse_req_t req,
entry = PARAM(arg);
for(uint32_t i = 0; i < arg->count; i++)
do_forget(f,entry[i].nodeid,entry[i].nlookup);
forget_node(f,
entry[i].nodeid,
entry[i].nlookup);
fuse_reply_none(req);
}
@ -3485,10 +3479,10 @@ fuse_lib_fallocate(fuse_req_t req,
f = req_fuse_prepare(req);
err = f->fs->op.fallocate(arg->mode,
err = f->fs->op.fallocate(&ffi,
arg->mode,
arg->offset,
arg->length,
&ffi);
arg->length);
reply_err(req,err);
}

Loading…
Cancel
Save