summaryrefslogtreecommitdiff
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2018-02-15 13:07:59 +0300
committerDavid Sterba <dsterba@suse.com>2018-03-26 16:09:35 +0300
commit566b1760b42be7c99c02e894b1ec9a707c2e83d1 (patch)
tree6cee8bc71b76d1b0c6e43de1f78f28ebaa25cae7 /fs/btrfs/volumes.c
parent3752d22fcea160cc2493e34f5e0e41cdd7fdd921 (diff)
downloadlinux-566b1760b42be7c99c02e894b1ec9a707c2e83d1.tar.xz
btrfs: use ASSERT to report logical error in cow_file_range()
Use ASSERT to report logical error in cow_file_range(), also move it a bit closer to when the num_bytes is derived. The extent start could be (u64)-1 in some cases, the assert should catch that we do not accidentally pass it to cow_file_range. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
0 files changed, 0 insertions, 0 deletions