OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e25a812
)
btrfs: send: squeeze bitfilelds in fs_path
author
David Sterba
<dsterba@suse.cz>
Mon, 3 Feb 2014 18:23:47 +0000
(19:23 +0100)
committer
Josef 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
patch
|
blob
|
history
diff --git
a/fs/btrfs/send.c
b/fs/btrfs/send.c
index
5b9b82b
..
4405aae
100644
(file)
--- a/
fs/btrfs/send.c
+++ b/
fs/btrfs/send.c
@@
-53,8
+53,8
@@
struct fs_path {
char *end;
char *buf;
-
int buf_len
;
- unsigned
in
t reversed:1;
+
unsigned short buf_len:15
;
+ unsigned
shor
t reversed:1;
char inline_buf[];
};
char pad[PAGE_SIZE];