mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
reiserfs: open-code reiserfs_mutex_lock_safe() in reiserfs_unpack()
... and have it use inode_lock() Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
5ecfcb265f
commit
1ae1f3f647
1 changed files with 5 additions and 1 deletions
|
|
@ -187,7 +187,11 @@ int reiserfs_unpack(struct inode *inode, struct file *filp)
|
|||
}
|
||||
|
||||
/* we need to make sure nobody is changing the file size beneath us */
|
||||
reiserfs_mutex_lock_safe(&inode->i_mutex, inode->i_sb);
|
||||
{
|
||||
int depth = reiserfs_write_unlock_nested(inode->i_sb);
|
||||
inode_lock(inode);
|
||||
reiserfs_write_lock_nested(inode->i_sb, depth);
|
||||
}
|
||||
|
||||
reiserfs_write_lock(inode->i_sb);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue