summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/check-integrity.c
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2013-10-21 14:18:17 +0200
committerChris Mason <chris.mason@fusionio.com>2013-11-12 04:04:06 +0100
commita5f519c91df8d81b3e6ed3489806ba66f6b82ca7 (patch)
treec0b89c206217df379fcbcb666afbfc1711ad3c7e /fs/btrfs/check-integrity.c
parentBtrfs: optimize extent item search in run_delayed_extent_op (diff)
downloadlinux-a5f519c91df8d81b3e6ed3489806ba66f6b82ca7.tar.xz
linux-a5f519c91df8d81b3e6ed3489806ba66f6b82ca7.zip
Btrfs: fix check_int 'leaf item out of bounce' regression
Yet another cleanup patch broke code for which no xfstest exists. Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de> Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/check-integrity.c')
-rw-r--r--fs/btrfs/check-integrity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check-integrity.c
index 1c47be187240..3281f7ebc0f7 100644
--- a/fs/btrfs/check-integrity.c
+++ b/fs/btrfs/check-integrity.c
@@ -1038,7 +1038,7 @@ leaf_item_out_of_bounce_error:
disk_item_offset,
sizeof(struct btrfs_item));
item_offset = btrfs_stack_item_offset(&disk_item);
- item_size = btrfs_stack_item_offset(&disk_item);
+ item_size = btrfs_stack_item_size(&disk_item);
disk_key = &disk_item.key;
type = btrfs_disk_key_type(disk_key);