Commit 1ae1f3f6 authored by Al Viro's avatar Al Viro

reiserfs: open-code reiserfs_mutex_lock_safe() in reiserfs_unpack()

... and have it use inode_lock()
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 5ecfcb26
...@@ -187,7 +187,11 @@ int reiserfs_unpack(struct inode *inode, struct file *filp) ...@@ -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 */ /* 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); reiserfs_write_lock(inode->i_sb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment