aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/dm-vdo/int-map.c
diff options
context:
space:
mode:
authorGravatar Bruce Johnston <bjohnsto@redhat.com> 2024-02-26 17:04:43 -0500
committerGravatar Mike Snitzer <snitzer@kernel.org> 2024-03-04 15:07:56 -0500
commit6008d526b06bab2cbea194948aec0cd04461dcc6 (patch)
tree8d360237448a4049a931125b74415f7d80a11702 /drivers/md/dm-vdo/int-map.c
parentdm vdo: remove outdated pointer_map reference (diff)
downloadlinux-6008d526b06bab2cbea194948aec0cd04461dcc6.tar.gz
linux-6008d526b06bab2cbea194948aec0cd04461dcc6.tar.bz2
linux-6008d526b06bab2cbea194948aec0cd04461dcc6.zip
dm-vdo: change unnamed enums to defines
Signed-off-by: Bruce Johnston <bjohnsto@redhat.com> Signed-off-by: Matthew Sakai <msakai@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-vdo/int-map.c')
-rw-r--r--drivers/md/dm-vdo/int-map.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/md/dm-vdo/int-map.c b/drivers/md/dm-vdo/int-map.c
index 99ccbb1339c6..e0953e013f15 100644
--- a/drivers/md/dm-vdo/int-map.c
+++ b/drivers/md/dm-vdo/int-map.c
@@ -56,13 +56,11 @@
#include "numeric.h"
#include "permassert.h"
-enum {
- DEFAULT_CAPACITY = 16, /* the number of neighborhoods in a new table */
- NEIGHBORHOOD = 255, /* the number of buckets in each neighborhood */
- MAX_PROBES = 1024, /* limit on the number of probes for a free bucket */
- NULL_HOP_OFFSET = 0, /* the hop offset value terminating the hop list */
- DEFAULT_LOAD = 75 /* a compromise between memory use and performance */
-};
+#define DEFAULT_CAPACITY 16 /* the number of neighborhoods in a new table */
+#define NEIGHBORHOOD 255 /* the number of buckets in each neighborhood */
+#define MAX_PROBES 1024 /* limit on the number of probes for a free bucket */
+#define NULL_HOP_OFFSET 0 /* the hop offset value terminating the hop list */
+#define DEFAULT_LOAD 75 /* a compromise between memory use and performance */
/**
* struct bucket - hash bucket