]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
btrfs: send: squeeze bitfilelds in fs_path
authorDavid Sterba <dsterba@suse.cz>
Mon, 3 Feb 2014 18:23:47 +0000 (19:23 +0100)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:15:46 +0000 (15:15 -0400)
We know that buf_len is at most PATH_MAX, 4k, and can merge it with the
reversed member. This saves 3 bytes in favor of inline_buf.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/send.c

index 5b9b82b32cde94b07c57e3c5acf284dfd21ee0c7..4405aae05281fe9689110f78d5e29e56a3100f5e 100644 (file)
@@ -53,8 +53,8 @@ struct fs_path {
                        char *end;
 
                        char *buf;
-                       int buf_len;
-                       unsigned int reversed:1;
+                       unsigned short buf_len:15;
+                       unsigned short reversed:1;
                        char inline_buf[];
                };
                char pad[PAGE_SIZE];