diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-11-01 08:33:59 +0100 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2012-12-12 23:15:21 +0100 |
commit | 315a9850da2b89c83971b26fe54a60f22bdd91ad (patch) | |
tree | 725e3b6476abe2202457b6b39443dac47ec442c4 /fs/btrfs/ctree.h | |
parent | Btrfs: fix missing flush when committing a transaction (diff) | |
download | linux-315a9850da2b89c83971b26fe54a60f22bdd91ad.tar.xz linux-315a9850da2b89c83971b26fe54a60f22bdd91ad.zip |
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 2d41cb25266b..f9a078661ebc 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -3263,6 +3263,7 @@ int btrfs_lookup_file_extent(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 objectid, u64 bytenr, int mod); +u64 btrfs_file_extent_length(struct btrfs_path *path); int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_ordered_sum *sums); |