diff options
Diffstat (limited to 'fs/reiserfs/ioctl.c')
| -rw-r--r-- | fs/reiserfs/ioctl.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/reiserfs/ioctl.c b/fs/reiserfs/ioctl.c index 5cbb81e134ac..4131f4a49391 100644 --- a/fs/reiserfs/ioctl.c +++ b/fs/reiserfs/ioctl.c | |||
| @@ -186,12 +186,11 @@ int reiserfs_unpack(struct inode *inode, struct file *filp) | |||
| 186 | return 0; | 186 | return 0; |
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | /* we need to make sure nobody is changing the file size beneath | ||
| 190 | ** us | ||
| 191 | */ | ||
| 192 | reiserfs_mutex_lock_safe(&inode->i_mutex, inode->i_sb); | ||
| 193 | depth = reiserfs_write_lock_once(inode->i_sb); | 189 | depth = reiserfs_write_lock_once(inode->i_sb); |
| 194 | 190 | ||
| 191 | /* we need to make sure nobody is changing the file size beneath us */ | ||
| 192 | reiserfs_mutex_lock_safe(&inode->i_mutex, inode->i_sb); | ||
| 193 | |||
| 195 | write_from = inode->i_size & (blocksize - 1); | 194 | write_from = inode->i_size & (blocksize - 1); |
| 196 | /* if we are on a block boundary, we are already unpacked. */ | 195 | /* if we are on a block boundary, we are already unpacked. */ |
| 197 | if (write_from == 0) { | 196 | if (write_from == 0) { |
