Commit fbbd7a25 authored by Mike Snitzer's avatar Mike Snitzer

dm vdo: use #define for NO_CHAPTER and NO_CHAPTER_INDEX_ENTRY

Avoids unconventional use of 'static const' and enum in headers.
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
Signed-off-by: default avatarMatthew Sakai <msakai@redhat.com>
parent b196d6bd
...@@ -18,10 +18,8 @@ ...@@ -18,10 +18,8 @@
* is more efficient. Both types of chapter index are implemented with a delta index. * is more efficient. Both types of chapter index are implemented with a delta index.
*/ */
enum { /* The value returned when no entry is found in the chapter index. */
/* The value returned when no entry is found in the chapter index. */ #define NO_CHAPTER_INDEX_ENTRY U16_MAX
NO_CHAPTER_INDEX_ENTRY = U16_MAX,
};
struct open_chapter_index { struct open_chapter_index {
const struct index_geometry *geometry; const struct index_geometry *geometry;
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
* managed with volume_index_record structures. * managed with volume_index_record structures.
*/ */
static const u64 NO_CHAPTER = U64_MAX; #define NO_CHAPTER U64_MAX
struct volume_index_stats { struct volume_index_stats {
/* Nanoseconds spent rebalancing */ /* Nanoseconds spent rebalancing */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment