ANDROID: sdcardfs: Add option to drop unused dentries
authorDaniel Rosenberg <drosen@google.com>
Fri, 6 Jul 2018 23:24:27 +0000 (16:24 -0700)
committerDanny Wood <danwood76@gmail.com>
Fri, 8 Nov 2019 12:04:11 +0000 (12:04 +0000)
commit664c7367b6c26c167d516bcd8b7899fef5510923
tree3063fe3ff6de4fb392d4ca41f40326ef5c6d0e1f
parent21d08da5bedf2defc5625d32e387e0caf02d44d3
ANDROID: sdcardfs: Add option to drop unused dentries

This adds the nocache mount option, which will cause sdcardfs to always
drop dentries that are not in use, preventing cached entries from
holding on to lower dentries, which could  cause strange behavior when
bypassing the sdcardfs layer and directly changing the lower fs.

Change-Id: I70268584a20b989ae8cfdd278a2e4fa1605217fb
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
fs/sdcardfs/dentry.c
fs/sdcardfs/main.c
fs/sdcardfs/sdcardfs.h
fs/sdcardfs/super.c