Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276660
b: refs/heads/master
c: ea51d13
h: refs/heads/master
v: v3
  • Loading branch information
Andrea Arcangeli authored and Theodore Ts'o committed Dec 14, 2011
1 parent e47204d commit 6348919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: fc6cb1cda5db7b2d24bf32890826214b857c728e
refs/heads/master: ea51d132dbf9b00063169c1159bee253d9649224
2 changes: 1 addition & 1 deletion trunk/fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2508,7 +2508,7 @@ static int ext4_da_write_end(struct file *file,
*/

new_i_size = pos + copied;
if (new_i_size > EXT4_I(inode)->i_disksize) {
if (copied && new_i_size > EXT4_I(inode)->i_disksize) {
if (ext4_da_should_update_i_disksize(page, end)) {
down_write(&EXT4_I(inode)->i_data_sem);
if (new_i_size > EXT4_I(inode)->i_disksize) {
Expand Down

0 comments on commit 6348919

Please sign in to comment.