libfuse: remove userdata from init/destroy APIs; drop unused fuse_reply_ioctl_iov

The low-level init/destroy callbacks were passed a userdata pointer
that mergerfs never consumed - the caller threaded it through
fuse_lowlevel_new only to hand it back unchanged. Remove the
parameter from the ops struct, from fuse_lowlevel_new(_common),
and from the internal fuse_ll struct; update fuse_lib_init and
fuse_lib_destroy accordingly.

Also drop fuse_reply_ioctl_iov: no caller in-tree invokes it and
the public API is defined by this vendored libfuse fork.
This commit is contained in:
Antonio S. Musumeci 2026-04-18 00:59:52 -04:00 • committed by trapexit
parent e67b7d0825
commit 0bdbaf1d6c
4 changed files with 18 additions and 67 deletions

View file

@ -1320,15 +1320,14 @@ reply_entry(fuse_req_t *req_,
static
void
fuse_lib_init(void *data,
fuse_conn_info_t *conn)
fuse_lib_init(fuse_conn_info_t *conn)
{
f.ops.init(conn);
}
static
void
fuse_lib_destroy(void *data)
fuse_lib_destroy()
{
f.ops.destroy();
}