mirror of https://github.com/schoebel/mars
compat: fix parent dir locking
This commit is contained in:
parent
beea145ec4
commit
7b49ae9dde
|
@ -458,7 +458,7 @@ retry:
|
||||||
goto exit1;
|
goto exit1;
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAS_INODE_LOCK_WRAPPERS
|
#ifdef HAS_INODE_LOCK_WRAPPERS
|
||||||
inode_lock_nested(dentry->d_inode, I_MUTEX_PARENT);
|
inode_lock_nested(parent->d_inode, I_MUTEX_PARENT);
|
||||||
#else
|
#else
|
||||||
mutex_lock_nested(&parent->d_inode->i_mutex, I_MUTEX_PARENT);
|
mutex_lock_nested(&parent->d_inode->i_mutex, I_MUTEX_PARENT);
|
||||||
#endif
|
#endif
|
||||||
|
@ -493,7 +493,7 @@ exit3:
|
||||||
dput(dentry);
|
dput(dentry);
|
||||||
exit2:
|
exit2:
|
||||||
#ifdef HAS_INODE_LOCK_WRAPPERS
|
#ifdef HAS_INODE_LOCK_WRAPPERS
|
||||||
inode_unlock(dentry->d_inode);
|
inode_unlock(parent->d_inode);
|
||||||
#else
|
#else
|
||||||
mutex_unlock(&parent->d_inode->i_mutex);
|
mutex_unlock(&parent->d_inode->i_mutex);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue