Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251731
b: refs/heads/master
c: 9b940f8
h: refs/heads/master
i:
  251729: 57dc3e4
  251727: 3631817
v: v3
  • Loading branch information
Allison Henderson authored and Theodore Ts'o committed May 16, 2011
1 parent 76a3182 commit 682374f
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 0b26859027ce0005ef89520af20351360e51ad76
refs/heads/master: 9b940f8e8c32456c8a6428fa4313a4bcca7b4fcb
9 changes: 4 additions & 5 deletions trunk/fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -2818,8 +2818,8 @@ static int ext4_ext_convert_to_initialized(handle_t *handle,
(EXT4_EXT_MAY_ZEROOUT & split_flag)) {
/* case 3 */
zero_ex.ee_block =
cpu_to_le32(map->m_lblk + map->m_len);
zero_ex.ee_len = cpu_to_le16(allocated - map->m_len);
cpu_to_le32(map->m_lblk);
zero_ex.ee_len = cpu_to_le16(allocated);
ext4_ext_store_pblock(&zero_ex,
ext4_ext_pblock(ex) + map->m_lblk - ee_block);
err = ext4_ext_zeroout(inode, &zero_ex);
Expand All @@ -2842,10 +2842,9 @@ static int ext4_ext_convert_to_initialized(handle_t *handle,
goto out;
}

allocated = map->m_lblk - ee_block + map->m_len;

split_map.m_lblk = ee_block;
split_map.m_len = allocated;
split_map.m_len = map->m_lblk - ee_block + map->m_len;
allocated = map->m_len;
}
}

Expand Down

0 comments on commit 682374f

Please sign in to comment.