mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
new helper: ihold()
Clones an existing reference to inode; caller must already hold one. Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
646ec4615c
commit
7de9c6ee3e
40 changed files with 57 additions and 49 deletions
|
|
@ -1045,7 +1045,7 @@ static int afs_link(struct dentry *from, struct inode *dir,
|
|||
if (ret < 0)
|
||||
goto link_error;
|
||||
|
||||
atomic_inc(&vnode->vfs_inode.i_count);
|
||||
ihold(&vnode->vfs_inode);
|
||||
d_instantiate(dentry, &vnode->vfs_inode);
|
||||
key_put(key);
|
||||
_leave(" = 0");
|
||||
|
|
|
|||
Loading…
Reference in a new issue