projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4058b5
)
btrfs: use smaller type for btrfs_path reada
author
David Sterba
<dsterba@suse.com>
Fri, 27 Nov 2015 15:31:38 +0000
(16:31 +0100)
committer
David Sterba
<dsterba@suse.com>
Thu, 7 Jan 2016 14:01:16 +0000
(15:01 +0100)
The possible values for reada are all positive and bounded, we can later
save some bytes by storing it in u8.
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
patch
|
blob
|
history
diff --git
a/fs/btrfs/ctree.h
b/fs/btrfs/ctree.h
index a1cf4c8135789f5f07fbcced7405febeef78b197..e5f9b96fc86f495aa05383e2deedee62ffc529df 100644
(file)
--- a/
fs/btrfs/ctree.h
+++ b/
fs/btrfs/ctree.h
@@
-596,7
+596,7
@@
struct btrfs_path {
int slots[BTRFS_MAX_LEVEL];
/* if there is real range locking, this locks field will change */
int locks[BTRFS_MAX_LEVEL];
-
int
reada;
+
u8
reada;
/* keep some upper locks as we walk down */
int lowest_level;