projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dccabfa
)
btrfs: use smaller type for btrfs_path lowest_level
author
David Sterba
<dsterba@suse.com>
Fri, 27 Nov 2015 15:31:42 +0000
(16:31 +0100)
committer
David Sterba
<dsterba@suse.com>
Thu, 7 Jan 2016 14:01:17 +0000
(15:01 +0100)
The level is 0..7, we can use smaller type. The size of btrfs_path is now
136 bytes from 144, which is +2 objects that fit into a 4k slab.
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/ctree.h
b/fs/btrfs/ctree.h
index e5f9b96fc86f495aa05383e2deedee62ffc529df..09ee92d9670c2c5b2ee402084fec61f18aadb8c5 100644
(file)
--- a/
fs/btrfs/ctree.h
+++ b/
fs/btrfs/ctree.h
@@
-598,7
+598,7
@@
struct btrfs_path {
int locks[BTRFS_MAX_LEVEL];
u8 reada;
/* keep some upper locks as we walk down */
-
int
lowest_level;
+
u8
lowest_level;
/*
* set by btrfs_split_item, tells search_slot to keep all locks