Btrfs: Fix for insert_inline_extent to handle offset != 0
authorYan <yanzheng@21cn.com>
Thu, 25 Oct 2007 19:42:57 +0000 (15:42 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:57 +0000 (11:03 -0400)
commit18f16f7ba62a01c29e09b40ac6ad6d92a8955859
tree9bb9ce1955d4dd880643a32d144448972bd37cbd
parentcc0c55384796b422133ff1f21646835b31590f88
Btrfs: Fix for insert_inline_extent to handle offset != 0

This modifies inline extent size calculation, so that
insert_inline_extent can handle the case that parameter 'offset' is
not zero; it also a few codes to zero uninitialized area in inline
extent.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file.c