Btrfs: fix wrong file extent length
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 1 Nov 2012 07:33:59 +0000 (07:33 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 12 Dec 2012 22:15:21 +0000 (17:15 -0500)
There are two types of the file extent - inline extent and regular extent,
When we log file extents, we didn't take inline extent into account, fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/file-item.c
fs/btrfs/tree-log.c

Simple merge
Simple merge
Simple merge