[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH RFC 08/21] ramblock: Cache the length to do file mmap() on ra
From: |
Peter Xu |
Subject: |
Re: [PATCH RFC 08/21] ramblock: Cache the length to do file mmap() on ramblocks |
Date: |
Tue, 24 Jan 2023 15:28:05 -0500 |
On Mon, Jan 23, 2023 at 06:51:51PM +0000, Dr. David Alan Gilbert wrote:
> * Peter Xu (peterx@redhat.com) wrote:
> > We do proper page size alignment for file backed mmap()s for ramblocks.
> > Even if it's as simple as that, cache the value because it'll be used in
> > multiple places.
> >
> > Since at it, drop size for file_ram_alloc() and just use max_length because
> > that's always true for file-backed ramblocks.
>
> Having a length previously called 'memory' was a bit odd!
:-D
>
> > Signed-off-by: Peter Xu <peterx@redhat.com>
>
> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Thanks,
--
Peter Xu
- [PATCH RFC 05/21] madvise: Add QEMU_MADV_SPLIT, (continued)
- [PATCH RFC 05/21] madvise: Add QEMU_MADV_SPLIT, Peter Xu, 2023/01/17
- [PATCH RFC 06/21] madvise: Add QEMU_MADV_COLLAPSE, Peter Xu, 2023/01/17
- [PATCH RFC 07/21] ramblock: Cache file offset for file-backed ramblocks, Peter Xu, 2023/01/17
- [PATCH RFC 08/21] ramblock: Cache the length to do file mmap() on ramblocks, Peter Xu, 2023/01/17
- [PATCH RFC 01/21] update linux headers, Peter Xu, 2023/01/17
- [PATCH RFC 10/21] ramblock: Add ramblock_file_map(), Peter Xu, 2023/01/17
- Re: [PATCH RFC 10/21] ramblock: Add ramblock_file_map(), Juan Quintela, 2023/01/30
[PATCH RFC 09/21] ramblock: Add RAM_READONLY, Peter Xu, 2023/01/17