summaryrefslogtreecommitdiff
path: root/drivers/md/dm-vdo/indexer/sparse-cache.c
diff options
context:
space:
mode:
authorBruce Johnston <bjohnsto@redhat.com>2024-02-27 01:04:43 +0300
committerMike Snitzer <snitzer@kernel.org>2024-03-04 23:07:56 +0300
commit6008d526b06bab2cbea194948aec0cd04461dcc6 (patch)
tree8d360237448a4049a931125b74415f7d80a11702 /drivers/md/dm-vdo/indexer/sparse-cache.c
parent04530b487bf35962ac3fbf490a6ca07d7a5d8869 (diff)
downloadlinux-6008d526b06bab2cbea194948aec0cd04461dcc6.tar.xz
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/indexer/sparse-cache.c')
-rw-r--r--drivers/md/dm-vdo/indexer/sparse-cache.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/md/dm-vdo/indexer/sparse-cache.c b/drivers/md/dm-vdo/indexer/sparse-cache.c
index f2141de6ed00..9e8672cba3fa 100644
--- a/drivers/md/dm-vdo/indexer/sparse-cache.c
+++ b/drivers/md/dm-vdo/indexer/sparse-cache.c
@@ -77,10 +77,8 @@
* considered to be a member of the cache for uds_sparse_cache_contains().
*/
-enum {
- SKIP_SEARCH_THRESHOLD = 20000,
- ZONE_ZERO = 0,
-};
+#define SKIP_SEARCH_THRESHOLD 20000
+#define ZONE_ZERO 0
/*
* These counters are essentially fields of the struct cached_chapter_index, but are segregated