Commit 1f8b9836 authored by Daniel Rosenberg's avatar Daniel Rosenberg Committed by Amit Pundir
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 ac9129c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment