diff options
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 7f915d478399..9ff2b4e0e922 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -724,7 +724,8 @@ long btrfs_ioctl_clone(struct file *file, unsigned long src_fd) | |||
724 | extent = btrfs_item_ptr(leaf, slot, | 724 | extent = btrfs_item_ptr(leaf, slot, |
725 | struct btrfs_file_extent_item); | 725 | struct btrfs_file_extent_item); |
726 | found_type = btrfs_file_extent_type(leaf, extent); | 726 | found_type = btrfs_file_extent_type(leaf, extent); |
727 | if (found_type == BTRFS_FILE_EXTENT_REG) { | 727 | if (found_type == BTRFS_FILE_EXTENT_REG || |
728 | found_type == BTRFS_FILE_EXTENT_PREALLOC) { | ||
728 | u64 ds = btrfs_file_extent_disk_bytenr(leaf, | 729 | u64 ds = btrfs_file_extent_disk_bytenr(leaf, |
729 | extent); | 730 | extent); |
730 | u64 dl = btrfs_file_extent_disk_num_bytes(leaf, | 731 | u64 dl = btrfs_file_extent_disk_num_bytes(leaf, |