/* NOTE: this should always be called with parent dir i_mutex taken.  */
int ocfs2_find_files_on_disk(const char *name, int namelen, u64 *blkno, struct inode *inode, struct ocfs2_dir_lookup_result *lookup)
/* NOTE: this should always be called with parent dir i_mutex taken.  */
int ocfs2_find_files_on_disk(const char *name, int namelen, u64 *blkno, struct inode *inode, struct ocfs2_dir_lookup_result *lookup)
{
	int status = -ENOENT;
	mlog(0, "name=%.*s, blkno=%p, inode=%llu\n", namelen, name, blkno,
	     (unsigned long long)OCFS2_I(inode)->ip_blkno);
	status = ocfs2_find_entry(name, namelen, inode, lookup);
	if (status)
		goto leave;
	*blkno = le64_to_cpu(lookup->dl_entry->inode);
	status = 0;
leave:
	return status;
}