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

Commit 74ff0ffc authored by Al Viro's avatar Al Viro
Browse files

namei: simplify invalidation logics in lookup_dcache()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e9742b53
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -1458,14 +1458,10 @@ static struct dentry *lookup_dcache(struct qstr *name, struct dentry *dir,
		if (dentry->d_flags & DCACHE_OP_REVALIDATE) {
			error = d_revalidate(dentry, flags);
			if (unlikely(error <= 0)) {
				if (error < 0) {
					dput(dentry);
					return ERR_PTR(error);
				} else {
				if (!error)
					d_invalidate(dentry);
				dput(dentry);
					dentry = NULL;
				}
				return ERR_PTR(error);
			}
		}
	}