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

Commit 18fbbfc2 authored by Al Viro's avatar Al Viro
Browse files

omfs_lookup(): report IO errors, use d_splice_alias()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 04bb1ba1
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -305,11 +305,10 @@ static struct dentry *omfs_lookup(struct inode *dir, struct dentry *dentry,
		ino_t ino = be64_to_cpu(oi->i_head.h_self);
		brelse(bh);
		inode = omfs_iget(dir->i_sb, ino);
		if (IS_ERR(inode))
			return ERR_CAST(inode);
	} else if (bh != ERR_PTR(-ENOENT)) {
		inode = ERR_CAST(bh);
	}
	d_add(dentry, inode);
	return NULL;
	return d_splice_alias(inode, dentry);
}

/* sanity check block's self pointer */