Skip to content

Commit

Permalink
btrfs: send: squeeze bitfilelds in fs_path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Sterba authored and Josef Bacik committed Mar 10, 2014
1 parent e25a812 commit 1f5a7ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/btrfs/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 1f5a7ff

Please sign in to comment.