mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
cramfs_lookup(): use d_splice_alias()
simpler code that way, actually Acked-by: Nicolas Pitre <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
b455ecd4bb
commit
d023b3a19f
1 changed files with 1 additions and 4 deletions
|
|
@ -808,10 +808,7 @@ static struct dentry *cramfs_lookup(struct inode *dir, struct dentry *dentry, un
|
|||
}
|
||||
out:
|
||||
mutex_unlock(&read_mutex);
|
||||
if (IS_ERR(inode))
|
||||
return ERR_CAST(inode);
|
||||
d_add(dentry, inode);
|
||||
return NULL;
|
||||
return d_splice_alias(inode, dentry);
|
||||
}
|
||||
|
||||
static int cramfs_readpage(struct file *file, struct page *page)
|
||||
|
|
|
|||
Loading…
Reference in a new issue