mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
tunables: remove legacy FreeBSD aliases
These are old pre-OpenZFS tunable names that have long been available via either conventional ZFS_MODULE_PARAM tunables or through kstats. There's no point doubling up anymore, so delete them. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #17375
This commit is contained in:
+16
-16
@@ -486,13 +486,13 @@ static taskq_t *arc_flush_taskq;
|
||||
static uint_t zfs_arc_evict_threads = 0;
|
||||
|
||||
/* The 7 states: */
|
||||
arc_state_t ARC_anon;
|
||||
arc_state_t ARC_mru;
|
||||
arc_state_t ARC_mru_ghost;
|
||||
arc_state_t ARC_mfu;
|
||||
arc_state_t ARC_mfu_ghost;
|
||||
arc_state_t ARC_l2c_only;
|
||||
arc_state_t ARC_uncached;
|
||||
static arc_state_t ARC_anon;
|
||||
/* */ arc_state_t ARC_mru;
|
||||
static arc_state_t ARC_mru_ghost;
|
||||
/* */ arc_state_t ARC_mfu;
|
||||
static arc_state_t ARC_mfu_ghost;
|
||||
static arc_state_t ARC_l2c_only;
|
||||
static arc_state_t ARC_uncached;
|
||||
|
||||
arc_stats_t arc_stats = {
|
||||
{ "hits", KSTAT_DATA_UINT64 },
|
||||
@@ -832,15 +832,15 @@ typedef struct arc_async_flush {
|
||||
#define L2ARC_FEED_TYPES 4
|
||||
|
||||
/* L2ARC Performance Tunables */
|
||||
uint64_t l2arc_write_max = L2ARC_WRITE_SIZE; /* def max write size */
|
||||
uint64_t l2arc_write_boost = L2ARC_WRITE_SIZE; /* extra warmup write */
|
||||
uint64_t l2arc_headroom = L2ARC_HEADROOM; /* # of dev writes */
|
||||
uint64_t l2arc_headroom_boost = L2ARC_HEADROOM_BOOST;
|
||||
uint64_t l2arc_feed_secs = L2ARC_FEED_SECS; /* interval seconds */
|
||||
uint64_t l2arc_feed_min_ms = L2ARC_FEED_MIN_MS; /* min interval msecs */
|
||||
int l2arc_noprefetch = B_TRUE; /* don't cache prefetch bufs */
|
||||
int l2arc_feed_again = B_TRUE; /* turbo warmup */
|
||||
int l2arc_norw = B_FALSE; /* no reads during writes */
|
||||
static uint64_t l2arc_write_max = L2ARC_WRITE_SIZE; /* def max write size */
|
||||
static uint64_t l2arc_write_boost = L2ARC_WRITE_SIZE; /* extra warmup write */
|
||||
static uint64_t l2arc_headroom = L2ARC_HEADROOM; /* # of dev writes */
|
||||
static uint64_t l2arc_headroom_boost = L2ARC_HEADROOM_BOOST;
|
||||
static uint64_t l2arc_feed_secs = L2ARC_FEED_SECS; /* interval seconds */
|
||||
static uint64_t l2arc_feed_min_ms = L2ARC_FEED_MIN_MS; /* min interval msecs */
|
||||
static int l2arc_noprefetch = B_TRUE; /* don't cache prefetch bufs */
|
||||
static int l2arc_feed_again = B_TRUE; /* turbo warmup */
|
||||
static int l2arc_norw = B_FALSE; /* no reads during writes */
|
||||
static uint_t l2arc_meta_percent = 33; /* limit on headers size */
|
||||
|
||||
/*
|
||||
|
||||
@@ -57,19 +57,19 @@ static unsigned int zfetch_max_sec_reap = 2;
|
||||
/* min bytes to prefetch per stream (default 2MB) */
|
||||
static unsigned int zfetch_min_distance = 2 * 1024 * 1024;
|
||||
/* max bytes to prefetch per stream (default 8MB) */
|
||||
unsigned int zfetch_max_distance = 8 * 1024 * 1024;
|
||||
static unsigned int zfetch_max_distance = 8 * 1024 * 1024;
|
||||
#else
|
||||
/* min bytes to prefetch per stream (default 4MB) */
|
||||
static unsigned int zfetch_min_distance = 4 * 1024 * 1024;
|
||||
/* max bytes to prefetch per stream (default 64MB) */
|
||||
unsigned int zfetch_max_distance = 64 * 1024 * 1024;
|
||||
static unsigned int zfetch_max_distance = 64 * 1024 * 1024;
|
||||
#endif
|
||||
/* max bytes to prefetch indirects for per stream (default 128MB) */
|
||||
unsigned int zfetch_max_idistance = 128 * 1024 * 1024;
|
||||
static unsigned int zfetch_max_idistance = 128 * 1024 * 1024;
|
||||
/* max request reorder distance within a stream (default 16MB) */
|
||||
unsigned int zfetch_max_reorder = 16 * 1024 * 1024;
|
||||
static unsigned int zfetch_max_reorder = 16 * 1024 * 1024;
|
||||
/* Max log2 fraction of holes in a stream */
|
||||
unsigned int zfetch_hole_shift = 2;
|
||||
static unsigned int zfetch_hole_shift = 2;
|
||||
|
||||
typedef struct zfetch_stats {
|
||||
kstat_named_t zfetchstat_hits;
|
||||
|
||||
+1
-1
@@ -100,7 +100,7 @@ static uint_t zfs_vdev_default_ms_shift = 29;
|
||||
/* upper limit for metaslab size (16G) */
|
||||
static uint_t zfs_vdev_max_ms_shift = 34;
|
||||
|
||||
int vdev_validate_skip = B_FALSE;
|
||||
static int vdev_validate_skip = B_FALSE;
|
||||
|
||||
/*
|
||||
* Since the DTL space map of a vdev is not expected to have a lot of
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
* The maximum number of i/os active to each device. Ideally, this will be >=
|
||||
* the sum of each queue's max_active.
|
||||
*/
|
||||
uint_t zfs_vdev_max_active = 1000;
|
||||
static uint_t zfs_vdev_max_active = 1000;
|
||||
|
||||
/*
|
||||
* Per-queue limits on the number of i/os active to each device. If the
|
||||
|
||||
@@ -105,7 +105,7 @@ static const uint_t zfs_remove_max_copy_bytes = 64 * 1024 * 1024;
|
||||
*
|
||||
* See also the accessor function spa_remove_max_segment().
|
||||
*/
|
||||
uint_t zfs_remove_max_segment = SPA_MAXBLOCKSIZE;
|
||||
static uint_t zfs_remove_max_segment = SPA_MAXBLOCKSIZE;
|
||||
|
||||
/*
|
||||
* Ignore hard IO errors during device removal. When set if a device
|
||||
@@ -137,7 +137,7 @@ uint_t vdev_removal_max_span = 32 * 1024;
|
||||
* This is used by the test suite so that it can ensure that certain
|
||||
* actions happen while in the middle of a removal.
|
||||
*/
|
||||
int zfs_removal_suspend_progress = 0;
|
||||
static int zfs_removal_suspend_progress = 0;
|
||||
|
||||
#define VDEV_REMOVAL_ZAP_OBJS "lzap"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user