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)
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

Simple merge
diff --cc fs/btrfs/file.c
Simple merge
Simple merge