Port fix: don't round mmap offset to next page
[babeltrace.git] / plugins / ctf / fs-src / data-stream-file.h
index 8b2d7247fb91797ee3b759a567916cbb698c4cc7..1d3e51e68385e70a8c5b4afcdd0d0f3985a02941 100644 (file)
@@ -99,15 +99,15 @@ struct ctf_fs_ds_file {
 
        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;
 
This page took 0.023217 seconds and 4 git commands to generate.