]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61b90804b955645efdff821c04a950e775ec41bd
treee1ab00ec2a527615c2f17c2665e6597fc3b81c7d
parentb0f41aa189b63b06b2c6783e6359c24ef9cbf43c
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