OSDN Git Service

ANDROID: sdcardfs: Don't do d_add for lower fs
authorDaniel Rosenberg <drosen@google.com>
Wed, 19 Apr 2017 05:25:15 +0000 (22:25 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commit349aa9093f8a68e19000a71fd2a087e645c5cfaf
tree925ccc3898406182ec28bd9028627eb2a41e9c8e
parent01d200601cde0b36311de65ffc831dada3fbaf43
ANDROID: sdcardfs: Don't do d_add for lower fs

For file based encryption, ext4 explicitly does not
create negative dentries for encrypted files. If you
force one over it, the decrypted file will be hidden
until the cache is cleared. Instead, just fail out.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 37231161
Change-Id: Id2a9708dfa75e1c22f89915c529789caadd2ca4b
fs/sdcardfs/lookup.c