mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -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
|
|
@ -1279,7 +1279,7 @@ int txCommit(tid_t tid, /* transaction identifier */
|
|||
* lazy commit thread finishes processing
|
||||
*/
|
||||
if (tblk->xflag & COMMIT_DELETE) {
|
||||
atomic_inc(&tblk->u.ip->i_count);
|
||||
ihold(tblk->u.ip);
|
||||
/*
|
||||
* Avoid a rare deadlock
|
||||
*
|
||||
|
|
|
|||
|
|
@ -839,7 +839,7 @@ static int jfs_link(struct dentry *old_dentry,
|
|||
ip->i_ctime = CURRENT_TIME;
|
||||
dir->i_ctime = dir->i_mtime = CURRENT_TIME;
|
||||
mark_inode_dirty(dir);
|
||||
atomic_inc(&ip->i_count);
|
||||
ihold(ip);
|
||||
|
||||
iplist[0] = ip;
|
||||
iplist[1] = dir;
|
||||
|
|
|
|||
Loading…
Reference in a new issue