OSDN Git Service

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 5b9b82b..4405aae 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];