summaryrefslogtreecommitdiff
path: root/file-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'file-item.c')
-rw-r--r--file-item.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/file-item.c b/file-item.c
index 4cbc2a57..e5f5dea5 100644
--- a/file-item.c
+++ b/file-item.c
@@ -140,8 +140,7 @@ int btrfs_insert_inline_extent(struct btrfs_trans_handle *trans,
(unsigned long long)objectid);
goto fail;
}
- found_size = btrfs_file_extent_inline_len(leaf,
- btrfs_item_nr(leaf, path->slots[0]));
+ found_size = btrfs_file_extent_inline_len(leaf, ei);
found_end = key.offset + found_size;
if (found_end < offset + size) {