projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cca831
)
bcachefs: Convert open-coded extra computation to helper
author
Alan Huang
<mmpgouride@gmail.com>
Sat, 10 Aug 2024 16:11:46 +0000
(
00:11
+0800)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 9 Sep 2024 13:41:49 +0000
(09:41 -0400)
This patch replaces open-coded extra computation to eytzinger1_extra.
Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bset.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/bset.c
b/fs/bcachefs/bset.c
index 59158eb6d41f0607dda53fb018a586f71063b43b..00a821f617a557ad7293e07e84ff9754f5037269 100644
(file)
--- a/
fs/bcachefs/bset.c
+++ b/
fs/bcachefs/bset.c
@@
-732,7
+732,7
@@
retry:
return;
}
- t->extra =
(t->size - rounddown_pow_of_two(t->size - 1)) << 1
;
+ t->extra =
eytzinger1_extra(t->size - 1)
;
/* First we figure out where the first key in each cacheline is */
eytzinger1_for_each(j, t->size - 1) {