summaryrefslogtreecommitdiff
path: root/fs/fuse/xattr.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2019-09-10 16:04:08 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2019-09-10 17:29:48 +0300
commit1f4e9d03d1fbff428a0e864d5456e0a2dace6f81 (patch)
tree926d58c6bdd882063749d62068ceb68f3b1db0da /fs/fuse/xattr.c
parentd5b4854357f47899ea5b0336b41b04e81b62b11d (diff)
downloadlinux-1f4e9d03d1fbff428a0e864d5456e0a2dace6f81.tar.xz
fuse: rearrange and resize fuse_args fields
This makes the structure better packed. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/xattr.c')
-rw-r--r--fs/fuse/xattr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fuse/xattr.c b/fs/fuse/xattr.c
index 2e02486e46e6..20d052e08b3b 100644
--- a/fs/fuse/xattr.c
+++ b/fs/fuse/xattr.c
@@ -70,7 +70,7 @@ ssize_t fuse_getxattr(struct inode *inode, const char *name, void *value,
/* This is really two different operations rolled into one */
args.out_numargs = 1;
if (size) {
- args.out_argvar = 1;
+ args.out_argvar = true;
args.out_args[0].size = size;
args.out_args[0].value = value;
} else {
@@ -129,7 +129,7 @@ ssize_t fuse_listxattr(struct dentry *entry, char *list, size_t size)
/* This is really two different operations rolled into one */
args.out_numargs = 1;
if (size) {
- args.out_argvar = 1;
+ args.out_argvar = true;
args.out_args[0].size = size;
args.out_args[0].value = list;
} else {