static inline int dentry_cmp(const struct dentry *dentry, const unsigned char *ct, unsigned tcount)
{
- if (dentry->d_name.len != tcount)
- return 1;
-
/*
* Be careful about RCU walk racing with rename:
* use ACCESS_ONCE to fetch the name pointer.
continue;
if (alias->d_parent != entry->d_parent)
continue;
+ if (alias->d_name.len != len)
+ continue;
if (dentry_cmp(alias, name, len))
continue;
__dget(alias);
}
}
+ if (dentry->d_name.len != len)
+ continue;
if (!dentry_cmp(dentry, str, len))
return dentry;
}
tlen, tname, name))
goto next;
} else {
+ if (dentry->d_name.len != len)
+ goto next;
if (dentry_cmp(dentry, str, len))
goto next;
}