void *mmap_addr;
- /* Max length of chunk to mmap() when updating the current mapping. */
+ /*
+ * Max length of chunk to mmap() when updating the current mapping.
+ * This value must be page-aligned.
+ */
size_t mmap_max_len;
- /* Length of the current mapping. */
+ /* Length of the current mapping. Never exceeds the file's length. */
size_t mmap_len;
- /* Length of the current mapping which *exists* in the backing file. */
- size_t mmap_valid_len;
-
/* Offset in the file where the current mapping starts. */
off_t mmap_offset;