mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
make d_splice_alias(ERR_PTR(err), dentry) = ERR_PTR(err)
... and simplify the living hell out of callers Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
0c1aa9a952
commit
a9049376ee
15 changed files with 39 additions and 94 deletions
|
|
@ -60,14 +60,11 @@ static efs_ino_t efs_find_entry(struct inode *inode, const char *name, int len)
|
|||
|
||||
struct dentry *efs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd) {
|
||||
efs_ino_t inodenum;
|
||||
struct inode * inode = NULL;
|
||||
struct inode *inode = NULL;
|
||||
|
||||
inodenum = efs_find_entry(dir, dentry->d_name.name, dentry->d_name.len);
|
||||
if (inodenum) {
|
||||
if (inodenum)
|
||||
inode = efs_iget(dir->i_sb, inodenum);
|
||||
if (IS_ERR(inode))
|
||||
return ERR_CAST(inode);
|
||||
}
|
||||
|
||||
return d_splice_alias(inode, dentry);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue