aboutsummaryrefslogtreecommitdiffstats
path: root/module/avl
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-01-15 00:37:55 +0100
committerGitHub <[email protected]>2022-01-14 15:37:55 -0800
commit18168da727427e28914235137daebe06c23069cd (patch)
tree71a8769a2a12dd4add4f7abfb5a1e4f51f09cf18 /module/avl
parent7adc19009817303af10c8b3b7617850994cfb9e2 (diff)
module/*.ko: prune .data, global .rodata
Evaluated every variable that lives in .data (and globals in .rodata) in the kernel modules, and constified/eliminated/localised them appropriately. This means that all read-only data is now actually read-only data, and, if possible, at file scope. A lot of previously- global-symbols became inlinable (and inlined!) constants. Probably not in a big Wowee Performance Moment, but hey. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12899
Diffstat (limited to 'module/avl')
-rw-r--r--module/avl/avl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/avl/avl.c b/module/avl/avl.c
index e53e2fa5d..c86dc9835 100644
--- a/module/avl/avl.c
+++ b/module/avl/avl.c
@@ -119,7 +119,7 @@
* additional memory reference. Since the translation arrays are both very
* small the data should remain efficiently in cache.
*/
-static const int avl_child2balance[2] = {-1, 1};
+static const int avl_child2balance[] = {-1, 1};
static const int avl_balance2child[] = {0, 0, 1};