Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95042
b: refs/heads/master
c: a871611
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Theodore Ts'o committed Apr 17, 2008
1 parent 86e2308 commit cb3c69f
Show file tree
Hide file tree
Showing 2 changed files with 8 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: c0a4ef38ac90d9053fcf3e22f81520a507c1a7bd
refs/heads/master: a871611b474bfcdee422c0cf5d16f509dce096f5
9 changes: 7 additions & 2 deletions trunk/fs/ext4/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,15 @@ static struct buffer_head *ext4_append(handle_t *handle,

*block = inode->i_size >> inode->i_sb->s_blocksize_bits;

if ((bh = ext4_bread(handle, inode, *block, 1, err))) {
bh = ext4_bread(handle, inode, *block, 1, err);
if (bh) {
inode->i_size += inode->i_sb->s_blocksize;
EXT4_I(inode)->i_disksize = inode->i_size;
ext4_journal_get_write_access(handle,bh);
*err = ext4_journal_get_write_access(handle, bh);
if (*err) {
brelse(bh);
bh = NULL;
}
}
return bh;
}
Expand Down

0 comments on commit cb3c69f

Please sign in to comment.