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)
commit315a9850da2b89c83971b26fe54a60f22bdd91ad
tree725e3b6476abe2202457b6b39443dac47ec442c4
parentca46963718ef7368c84267c9f5e7394c3890442a
Btrfs: fix wrong file extent length

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