Rename for clarity

Related to #18
parent db933215
...@@ -740,9 +740,9 @@ fellow_signal_open(struct fellow_fd *ffd) ...@@ -740,9 +740,9 @@ fellow_signal_open(struct fellow_fd *ffd)
#include "fellow_regionlist.h" #include "fellow_regionlist.h"
#define fellow_log_prep_max (FELLOW_DISK_LOG_BLOCK_ENTRIES * DLE_BAN_REG_NREGION) #define fellow_log_prep_max_regions (FELLOW_DISK_LOG_BLOCK_ENTRIES * DLE_BAN_REG_NREGION)
struct fellow_log_prep_tofree regionlist_stk(fellow_log_prep_max); struct fellow_log_prep_tofree regionlist_stk(fellow_log_prep_max_regions);
struct fellow_log_prep { struct fellow_log_prep {
unsigned magic; unsigned magic;
#define FELLOW_LOG_PREP_MAGIC 0x3f99fab8 #define FELLOW_LOG_PREP_MAGIC 0x3f99fab8
...@@ -3776,11 +3776,11 @@ fellow_log_entries_prep(struct fellow_log_prep *prep, ...@@ -3776,11 +3776,11 @@ fellow_log_entries_prep(struct fellow_log_prep *prep,
AN(prep); AN(prep);
AN(entry); AN(entry);
AN(n); AN(n);
assert(n <= fellow_log_prep_max); assert(n <= fellow_log_prep_max_regions);
memset(hashpfx, 0, sizeof hashpfx); memset(hashpfx, 0, sizeof hashpfx);
INIT_OBJ(prep, FELLOW_LOG_PREP_MAGIC); INIT_OBJ(prep, FELLOW_LOG_PREP_MAGIC);
prep->tofree.space = fellow_log_prep_max; prep->tofree.space = fellow_log_prep_max_regions;
fellow_log_entries_mutate(prep, entry, n); fellow_log_entries_mutate(prep, entry, n);
......
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