*
* This should be called without the parent
* i_mutex held, and will take the i_mutex itself.
- *
- * Unlike osd_lookup_one_len dentry with NULL d_inode is valid
*/
struct dentry *osd_lookup_one_len_unlocked(const char *name,
struct dentry *base, int len)
* @name: pathname component to lookup
* @base: base directory to lookup from
* @len: maximum length @len should be interpreted to
- *
- * Treat found dentry with NULL d_inode as an -ENOENT error so LFSCK
- * can repair the file.
*/
struct dentry *osd_ios_lookup_one_len(const char *name, struct dentry *base,
int len)
return dentry;
}
- if (dentry->d_inode == NULL) {
- dput(dentry);
- return ERR_PTR(-ENOENT);
- }
-
return dentry;
}