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)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:37 +0000 (18:03 +0200)
commit49acfb81d2467aade6fff03ac5219f165fab9d07
tree1dd7ac03a993248276cb5cec0831e8210e656949
parentdf69e20ec3cc2df18f5c7ebb60dbfca8a8c35303
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