diff options
author | Josef Bacik <jbacik@fusionio.com> | 2012-12-03 10:31:19 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-12-16 20:46:23 -0500 |
commit | b493968096944a11422c4d80fb87af537ca1cac7 (patch) | |
tree | e1ab00ec2a527615c2f17c2665e6597fc3b81c7d /fs/btrfs/extent_map.h | |
parent | b812ce28796f746f14ba6cc451250c422db447b2 (diff) | |
download | blackbird-op-linux-b493968096944a11422c4d80fb87af537ca1cac7.tar.gz blackbird-op-linux-b493968096944a11422c4d80fb87af537ca1cac7.zip |
Btrfs: keep track of the extents original block length
If we've written to a prealloc extent we need to know the original block len
for the extent. We can't figure this out currently since ->block_len is
just set to the extent length. So introduce ->orig_block_len so that we
know how many bytes were in the original extent for proper extent logging
that future patches will need. Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/extent_map.h')
-rw-r--r-- | fs/btrfs/extent_map.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/extent_map.h b/fs/btrfs/extent_map.h index 679225555f7b..99a0dcb5ba2f 100644 --- a/fs/btrfs/extent_map.h +++ b/fs/btrfs/extent_map.h @@ -24,6 +24,7 @@ struct extent_map { u64 mod_start; u64 mod_len; u64 orig_start; + u64 orig_block_len; u64 block_start; u64 block_len; u64 generation; |