Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211165
b: refs/heads/master
c: 9d8117e
h: refs/heads/master
i:
  211163: b56476d
v: v3
  • Loading branch information
Frederic Weisbecker authored and Linus Torvalds committed Oct 1, 2010
1 parent 0a4fb0b commit 9443bbc
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 3f259d092c7a2fdf217823e8f1838530adb0cdb0
refs/heads/master: 9d8117e72bf453dd9d85e0cd322ce4a0f8bccbc0
5 changes: 3 additions & 2 deletions trunk/fs/reiserfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ int reiserfs_prepare_write(struct file *f, struct page *page,
int reiserfs_unpack(struct inode *inode, struct file *filp)
{
int retval = 0;
int depth;
int index;
struct page *page;
struct address_space *mapping;
Expand All @@ -189,7 +190,7 @@ int reiserfs_unpack(struct inode *inode, struct file *filp)
** us
*/
reiserfs_mutex_lock_safe(&inode->i_mutex, inode->i_sb);
reiserfs_write_lock(inode->i_sb);
depth = reiserfs_write_lock_once(inode->i_sb);

write_from = inode->i_size & (blocksize - 1);
/* if we are on a block boundary, we are already unpacked. */
Expand Down Expand Up @@ -224,6 +225,6 @@ int reiserfs_unpack(struct inode *inode, struct file *filp)

out:
mutex_unlock(&inode->i_mutex);
reiserfs_write_unlock(inode->i_sb);
reiserfs_write_unlock_once(inode->i_sb, depth);
return retval;
}

0 comments on commit 9443bbc

Please sign in to comment.