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)
committerDaniel Rosenberg <drosen@google.com>
Tue, 30 Jan 2018 03:40:09 +0000 (19:40 -0800)
commitb81400914c3989bafc3d3683348acbb5ac57dbdc
tree2cbfebba0106d92aa55e4f025aa81827e428c7a1
parentce02550067e399856a149243808551778f2efabf
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