Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoqiangnk committed Apr 30, 2011
1 parent be69223 commit 4d30240
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions fs/ext4/extents.c
Expand Up @@ -2933,10 +2933,10 @@ static int ext4_split_extents(handle_t *handle,
may_zeroout = ee_block + ee_len <= eof_block;

/*
* If the uninitialized extent begins at the same logical
* block where the write begins, and the write completely
* covers the extent, then we don't need to split it.
*/
* If the uninitialized extent begins at the same logical
* block where the write begins, and the write completely
* covers the extent, then we don't need to split it.
*/
if ((map->m_lblk == ee_block) && (allocated <= map->m_len))
return allocated;

Expand Down Expand Up @@ -3843,7 +3843,8 @@ int ext4_ext_map_blocks(handle_t *handle, struct inode *inode,
if (!err) {
/* splice new blocks to the inode*/
ext4_ext_store_pblock(ex, newblock);
err = ext4_ext_dirty(handle, inode, path + depth);
err = ext4_ext_dirty(handle, inode,
path + depth);
}
}

Expand Down

0 comments on commit 4d30240

Please sign in to comment.