ANDROID: Incremental fs: dentry_revalidate should not return -EBADF.

Fix of bug 161565969 added EBADF when backing path doesn't
exist. However, .log and .pending reads doesn't have
backing path causing incfs_test to fail.

Bug: 162243475
Test: incfs_test on QEMU passes

Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: Iba303bbc42b431fe4a4fbacb40584faaff4b14b7
This commit is contained in:
Akilesh Kailash
2020-07-27 18:16:51 +00:00
committed by Paul Lawrence
parent ed146f65cc
commit 30abd70986

View File

@@ -2005,10 +2005,8 @@ static int dentry_revalidate(struct dentry *d, unsigned int flags)
get_incfs_backing_path(d, &backing_path);
backing_dentry = backing_path.dentry;
if (!backing_dentry) {
result = -EBADF;
if (!backing_dentry)
goto out;
}
if (d_inode(backing_dentry) != binode) {
/*