Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307927
b: refs/heads/master
c: 67f1648
h: refs/heads/master
i:
  307925: 9c2d2e5
  307923: 0dd9b38
  307919: aaee84f
v: v3
  • Loading branch information
Jan Kara committed May 15, 2012
1 parent 66199cd commit 8a08f56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: 0b7f7cefaea96ef25dbe54b8e16d2d61560d8b9d
refs/heads/master: 67f1648d217c3b8165ca114c7838164f31e15790
6 changes: 1 addition & 5 deletions trunk/fs/reiserfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2270,7 +2270,6 @@ static ssize_t reiserfs_quota_write(struct super_block *sb, int type,
(unsigned long long)off, (unsigned long long)len);
return -EIO;
}
mutex_lock_nested(&inode->i_mutex, I_MUTEX_QUOTA);
while (towrite > 0) {
tocopy = sb->s_blocksize - offset < towrite ?
sb->s_blocksize - offset : towrite;
Expand Down Expand Up @@ -2302,16 +2301,13 @@ static ssize_t reiserfs_quota_write(struct super_block *sb, int type,
blk++;
}
out:
if (len == towrite) {
mutex_unlock(&inode->i_mutex);
if (len == towrite)
return err;
}
if (inode->i_size < off + len - towrite)
i_size_write(inode, off + len - towrite);
inode->i_version++;
inode->i_mtime = inode->i_ctime = CURRENT_TIME;
mark_inode_dirty(inode);
mutex_unlock(&inode->i_mutex);
return len - towrite;
}

Expand Down

0 comments on commit 8a08f56

Please sign in to comment.