aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/check-integrity.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2018-02-15 18:07:59 +0800
committerDavid Sterba <dsterba@suse.com>2018-03-26 15:09:35 +0200
commit566b1760b42be7c99c02e894b1ec9a707c2e83d1 (patch)
tree6cee8bc71b76d1b0c6e43de1f78f28ebaa25cae7 /fs/btrfs/check-integrity.c
parentbtrfs: cow_file_range() num_bytes and disk_num_bytes are same (diff)
downloadlinux-dev-566b1760b42be7c99c02e894b1ec9a707c2e83d1.tar.xz
linux-dev-566b1760b42be7c99c02e894b1ec9a707c2e83d1.zip
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/check-integrity.c')
0 files changed, 0 insertions, 0 deletions