mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 19:28:53 +03:00
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 <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12899
This commit is contained in:
@@ -172,7 +172,7 @@
|
||||
* object.
|
||||
*/
|
||||
|
||||
int zfs_condense_indirect_vdevs_enable = B_TRUE;
|
||||
static int zfs_condense_indirect_vdevs_enable = B_TRUE;
|
||||
|
||||
/*
|
||||
* Condense if at least this percent of the bytes in the mapping is
|
||||
@@ -181,7 +181,7 @@ int zfs_condense_indirect_vdevs_enable = B_TRUE;
|
||||
* condenses. Higher values will condense less often (causing less
|
||||
* i/o); lower values will reduce the mapping size more quickly.
|
||||
*/
|
||||
int zfs_condense_indirect_obsolete_pct = 25;
|
||||
static int zfs_condense_indirect_obsolete_pct = 25;
|
||||
|
||||
/*
|
||||
* Condense if the obsolete space map takes up more than this amount of
|
||||
@@ -189,14 +189,14 @@ int zfs_condense_indirect_obsolete_pct = 25;
|
||||
* consumed by the obsolete space map; the default of 1GB is small enough
|
||||
* that we typically don't mind "wasting" it.
|
||||
*/
|
||||
unsigned long zfs_condense_max_obsolete_bytes = 1024 * 1024 * 1024;
|
||||
static unsigned long zfs_condense_max_obsolete_bytes = 1024 * 1024 * 1024;
|
||||
|
||||
/*
|
||||
* Don't bother condensing if the mapping uses less than this amount of
|
||||
* memory. The default of 128KB is considered a "trivial" amount of
|
||||
* memory and not worth reducing.
|
||||
*/
|
||||
unsigned long zfs_condense_min_mapping_bytes = 128 * 1024;
|
||||
static unsigned long zfs_condense_min_mapping_bytes = 128 * 1024;
|
||||
|
||||
/*
|
||||
* This is used by the test suite so that it can ensure that certain
|
||||
@@ -204,7 +204,7 @@ unsigned long zfs_condense_min_mapping_bytes = 128 * 1024;
|
||||
* complete too quickly). If used to reduce the performance impact of
|
||||
* condensing in production, a maximum value of 1 should be sufficient.
|
||||
*/
|
||||
int zfs_condense_indirect_commit_entry_delay_ms = 0;
|
||||
static int zfs_condense_indirect_commit_entry_delay_ms = 0;
|
||||
|
||||
/*
|
||||
* If an indirect split block contains more than this many possible unique
|
||||
|
||||
Reference in New Issue
Block a user