aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 5ceaed25dce1..9dd2c5c23b56 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -439,6 +439,12 @@ next_slot:
439 struct btrfs_file_extent_item); 439 struct btrfs_file_extent_item);
440 found_type = btrfs_file_extent_type(leaf, extent); 440 found_type = btrfs_file_extent_type(leaf, extent);
441 if (found_type == BTRFS_FILE_EXTENT_REG) { 441 if (found_type == BTRFS_FILE_EXTENT_REG) {
442 extent_end =
443 btrfs_file_extent_disk_bytenr(leaf,
444 extent);
445 if (extent_end)
446 *hint_byte = extent_end;
447
442 extent_end = key.offset + 448 extent_end = key.offset +
443 btrfs_file_extent_num_bytes(leaf, extent); 449 btrfs_file_extent_num_bytes(leaf, extent);
444 found_extent = 1; 450 found_extent = 1;