Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101101
b: refs/heads/master
c: 953e622
h: refs/heads/master
i:
  101099: 7874d66
v: v3
  • Loading branch information
Eric Sandeen authored and Theodore Ts'o committed Jul 11, 2008
1 parent 8acc143 commit fdf78a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 47b4a50bebfd34b5e1fa2a9c673c8f31fa231cc1
refs/heads/master: 953e622b601f58b7cc0f29fe644457fa40a18456
7 changes: 3 additions & 4 deletions trunk/fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -2622,8 +2622,7 @@ int ext4_ext_get_blocks(handle_t *handle, struct inode *inode,
*/
if (allocated > max_blocks)
allocated = max_blocks;
/* mark the buffer unwritten */
__set_bit(BH_Unwritten, &bh_result->b_state);
set_buffer_unwritten(bh_result);
goto out2;
}

Expand Down Expand Up @@ -2729,7 +2728,7 @@ int ext4_ext_get_blocks(handle_t *handle, struct inode *inode,
if (extend_disksize && inode->i_size > EXT4_I(inode)->i_disksize)
EXT4_I(inode)->i_disksize = inode->i_size;

__set_bit(BH_New, &bh_result->b_state);
set_buffer_new(bh_result);

/* Cache only when it is _not_ an uninitialized extent */
if (create != EXT4_CREATE_UNINITIALIZED_EXT)
Expand All @@ -2739,7 +2738,7 @@ int ext4_ext_get_blocks(handle_t *handle, struct inode *inode,
if (allocated > max_blocks)
allocated = max_blocks;
ext4_ext_show_leaf(inode, path);
__set_bit(BH_Mapped, &bh_result->b_state);
set_buffer_mapped(bh_result);
bh_result->b_bdev = inode->i_sb->s_bdev;
bh_result->b_blocknr = newblock;
out2:
Expand Down

0 comments on commit fdf78a3

Please sign in to comment.