new helper: ihold()
Clones an existing reference to inode; caller must already hold one. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user