diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2019-09-10 15:04:08 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2019-09-10 16:29:48 +0200 |
commit | 454a7613f54e64a36b257812ae879ef8567c675e (patch) | |
tree | a622149561f419e69aaa79a979e57accb0bd400c /fs/fuse/dev.c | |
parent | c500ebaa908dbf6b3c562778a25d7e945b04f40f (diff) |
fuse: add noreply to fuse_args
This will be used by fuse_force_forget().
We can expand fuse_request_send() into fuse_simple_request(). The
FR_WAITING bit has already been set, no need to check.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r-- | fs/fuse/dev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index a7be13b5d6ef..85ed1abb9235 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -591,7 +591,9 @@ ssize_t fuse_simple_request(struct fuse_conn *fc, struct fuse_args *args) req->out.numargs = args->out_numargs; memcpy(req->out.args, args->out_args, args->out_numargs * sizeof(struct fuse_arg)); - fuse_request_send(fc, req); + if (!args->noreply) + __set_bit(FR_ISREPLY, &req->flags); + __fuse_request_send(fc, req); ret = req->out.h.error; if (!ret && args->out_argvar) { BUG_ON(args->out_numargs != 1); |