Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30abd709 authored by Akilesh Kailash's avatar Akilesh Kailash Committed by Paul Lawrence
Browse files

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: default avatarAkilesh Kailash <akailash@google.com>
Change-Id: Iba303bbc42b431fe4a4fbacb40584faaff4b14b7
parent ed146f65
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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) {
		/*