mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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:
committed by
Paul Lawrence
parent
ed146f65cc
commit
30abd70986
@@ -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) {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user