]> git.hungrycats.org Git - linux/commit
fuse: split out filesystem part of request sending
authorMiklos Szeredi <mszeredi@redhat.com>
Mon, 30 Mar 2026 10:58:19 +0000 (12:58 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 15 Jun 2026 12:06:17 +0000 (14:06 +0200)
commit794e811d144390d61eab407fb2e9ae37aefe50e7
tree7ccc40bb7c22f1455097a1d47426bd7d95461eac
parent28d733cc3ecad3a48e67c0d2bf8cbd1268bf30c6
fuse: split out filesystem part of request sending

Create a new source file: req.c and add the request sending entry
functions:

  __fuse_simple_request()
  fuse_simple_background()
  fuse_simple_notify_reply()

Introduce transport layer sending functions that are called by the
respective fs layer function:

  fuse_chan_send()
  fuse_chan_send_bg()
  fuse_chan_send_notify_reply()

Move calculation of request header fields uid, gid and pid from
fuse_get_req() and fuse_force_creads() to a new helper: fuse_fill_creds().

These fileds are now passed to the transport layer via struct fuse_args.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/Makefile
fs/fuse/dev.c
fs/fuse/dev.h
fs/fuse/fuse_i.h
fs/fuse/req.c [new file with mode: 0644]