Btrfs: Add zlib compression support
[linux-2.6-block.git] / fs / btrfs / tree-log.c
index cf618cc8b34ad3fd59d065adb01342ba027c2558..e6d579053a475b6191e31c6a8396140ab8293e98 100644 (file)
@@ -540,8 +540,7 @@ static noinline int replay_one_extent(struct btrfs_trans_handle *trans,
        if (found_type == BTRFS_FILE_EXTENT_REG)
                extent_end = start + btrfs_file_extent_num_bytes(eb, item);
        else if (found_type == BTRFS_FILE_EXTENT_INLINE) {
-               size = btrfs_file_extent_inline_len(eb,
-                                                   btrfs_item_nr(eb, slot));
+               size = btrfs_file_extent_inline_len(eb, item);
                extent_end = (start + size + mask) & ~mask;
        } else {
                ret = 0;