Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33254
b: refs/heads/master
c: b5f3953
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason authored and Linus Torvalds committed Aug 6, 2006
1 parent 392a3a4 commit c4553bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ebd15302dc0ba1b8761600c20854f5371e7bae1e
refs/heads/master: b5f3953c10b27fcd1c83e199e573b41d8327e22e
2 changes: 1 addition & 1 deletion trunk/fs/reiserfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ static int reiserfs_file_release(struct inode *inode, struct file *filp)
return 0;
}

reiserfs_write_lock(inode->i_sb);
mutex_lock(&inode->i_mutex);
reiserfs_write_lock(inode->i_sb);
/* freeing preallocation only involves relogging blocks that
* are already in the current transaction. preallocation gets
* freed at the end of each transaction, so it is impossible for
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/reiserfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ static int reiserfs_unpack(struct inode *inode, struct file *filp)
if (REISERFS_I(inode)->i_flags & i_nopack_mask) {
return 0;
}
reiserfs_write_lock(inode->i_sb);

/* we need to make sure nobody is changing the file size beneath
** us
*/
mutex_lock(&inode->i_mutex);
reiserfs_write_lock(inode->i_sb);

write_from = inode->i_size & (blocksize - 1);
/* if we are on a block boundary, we are already unpacked. */
Expand Down

0 comments on commit c4553bb

Please sign in to comment.