Btrfs: fix check_int 'leaf item out of bounce' regression
authorStefan Behrens <sbehrens@giantdisaster.de>
Mon, 21 Oct 2013 12:18:17 +0000 (14:18 +0200)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:04:06 +0000 (22:04 -0500)
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>
fs/btrfs/check-integrity.c

index 1c47be1872406715183cd1da184f1fd11dabc3be..3281f7ebc0f7a47c0a2968f21ce50493243bf331 100644 (file)
@@ -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);