Skip to content
Snippets Groups Projects
Commit c53c45f6 authored by Daniel Rosenberg's avatar Daniel Rosenberg Committed by Patrick Tjin
Browse files

ANDROID: sdcardfs: Directly pass lower file for mmap


Instead of relying on a copy hack, pass the lower file
as private data. This lets the kernel find the vma
mapping for pages used by the file, allowing pages
used by mapping to be reclaimed.

This is adapted from following esdfs patches
commit 0647e638d: ("esdfs: store lower file in vm_file for mmap")
commit 064850866: ("esdfs: keep a counter for mmaped file")

Change-Id: I75b74d1e5061db1b8c13be38d184e118c0851a1a
Signed-off-by: default avatarDaniel Rosenberg <drosen@google.com>
parent f4284fde
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment