aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2019-09-10 15:04:08 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2019-09-10 16:29:48 +0200
commitd5b4854357f47899ea5b0336b41b04e81b62b11d (patch)
treee50720bd959e2226432c8fc876071affa9b4aa55 /fs/fuse/fuse_i.h
parentfuse: fix deadlock with aio poll and fuse_iqueue::waitq.lock (diff)
downloadlinux-dev-d5b4854357f47899ea5b0336b41b04e81b62b11d.tar.xz
linux-dev-d5b4854357f47899ea5b0336b41b04e81b62b11d.zip
fuse: flatten 'struct fuse_args'
...to make future expansion simpler. The hiearachical structure is a historical thing that does not serve any practical purpose. The generated code is excatly the same before and after the patch. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index 89bdc41e0d86..835c0671320c 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -287,20 +287,13 @@ struct fuse_page_desc {
};
struct fuse_args {
- struct {
- struct {
- uint32_t opcode;
- uint64_t nodeid;
- } h;
- unsigned numargs;
- struct fuse_in_arg args[3];
-
- } in;
- struct {
- unsigned argvar:1;
- unsigned numargs;
- struct fuse_arg args[2];
- } out;
+ uint32_t opcode;
+ uint64_t nodeid;
+ unsigned int in_numargs;
+ struct fuse_in_arg in_args[3];
+ unsigned int out_argvar:1;
+ unsigned int out_numargs;
+ struct fuse_arg out_args[2];
};
#define FUSE_ARGS(args) struct fuse_args args = {}