Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307926
b: refs/heads/master
c: 0b7f7ce
h: refs/heads/master
v: v3
  • Loading branch information
Jan Kara committed May 15, 2012
1 parent 9c2d2e5 commit 66199cd
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: 905c3937625d14fa4453a2643814b72b8a22d9ae
refs/heads/master: 0b7f7cefaea96ef25dbe54b8e16d2d61560d8b9d
6 changes: 1 addition & 5 deletions trunk/fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -4760,7 +4760,6 @@ static ssize_t ext4_quota_write(struct super_block *sb, int type,
return -EIO;
}

mutex_lock_nested(&inode->i_mutex, I_MUTEX_QUOTA);
bh = ext4_bread(handle, inode, blk, 1, &err);
if (!bh)
goto out;
Expand All @@ -4776,16 +4775,13 @@ static ssize_t ext4_quota_write(struct super_block *sb, int type,
err = ext4_handle_dirty_metadata(handle, NULL, bh);
brelse(bh);
out:
if (err) {
mutex_unlock(&inode->i_mutex);
if (err)
return err;
}
if (inode->i_size < off + len) {
i_size_write(inode, off + len);
EXT4_I(inode)->i_disksize = inode->i_size;
ext4_mark_inode_dirty(handle, inode);
}
mutex_unlock(&inode->i_mutex);
return len;
}

Expand Down

0 comments on commit 66199cd

Please sign in to comment.