Subject: Re: [PATCH 03/19] read-cache: allow to keep mmap'd memory after reading

From: David Turner <[email-masked]>
Date: Wed, 09 Mar 2016 19:09:08 -0500

On Wed, 2016-03-09 at 15:02 -0800, Junio C Hamano wrote:
> David Turner <[email-masked]> writes:
> 
> > From: Nguyễn Thái Ngọc Duy <[email-masked]>
> > 
> > Signed-off-by: Nguyễn Thái Ngọc Duy <[email-masked]>
> > ---
> 
> As usual in Duy's patches, this one seriously lacks "why".  And also
> makes the reader wonder if the memory region is ever unmapped() and
> if so under what condition.

How about this:

Later, we will introduce git index-helper to share this memory with
other git processes.

Since the memory will be shared, it will never be unmapped (although
the kernel may of course choose to page it out).