Btrfs: keep track of the extents original block length
authorJosef Bacik <jbacik@fusionio.com>
Mon, 3 Dec 2012 15:31:19 +0000 (10:31 -0500)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:23 +0000 (20:46 -0500)
commitb493968096944a11422c4d80fb87af537ca1cac7
treee1ab00ec2a527615c2f17c2665e6597fc3b81c7d
parentb812ce28796f746f14ba6cc451250c422db447b2
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>
fs/btrfs/extent_map.h
fs/btrfs/file.c
fs/btrfs/inode.c