Re: [PATCH RFC 07/21] ramblock: Cache file offset for file-backed ramblocks

2023-01-29 Thread Juan Quintela
Peter Xu wrote: > This value was only used for mmap() when we want to map at a specific > offset of the file for memory. To be prepared that we might do another map > upon the same range for whatever reason, cache the offset so we know how to > map again on the same range. > > Signed-off-by: Pete

[PATCH RFC 07/21] ramblock: Cache file offset for file-backed ramblocks

2023-01-17 Thread Peter Xu
This value was only used for mmap() when we want to map at a specific offset of the file for memory. To be prepared that we might do another map upon the same range for whatever reason, cache the offset so we know how to map again on the same range. Signed-off-by: Peter Xu --- include/exec/ramb