aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/block-group.c
diff options
context:
space:
mode:
authorSidong Yang <realwakka@gmail.com>2021-08-26 14:44:36 +0000
committerDavid Sterba <dsterba@suse.com>2021-10-26 19:03:57 +0200
commit44bee215f72f13874c0e734a0712c2e3264c0108 (patch)
tree2bb5159f17c60fee392d487b8472aab840d6c814 /fs/btrfs/block-group.c
parentbtrfs: subpage: pack all subpage bitmaps into a larger bitmap (diff)
downloadlinux-dev-44bee215f72f13874c0e734a0712c2e3264c0108.tar.xz
linux-dev-44bee215f72f13874c0e734a0712c2e3264c0108.zip
btrfs: reflink: initialize return value to 0 in btrfs_extent_same()
Fix a warning reported by smatch that ret could be returned without initialized. The dedupe operations are supposed to to return 0 for a 0 length range but the caller does not pass olen == 0. To keep this behaviour and also fix the warning initialize ret to 0. Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Sidong Yang <realwakka@gmail.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/block-group.c')
0 files changed, 0 insertions, 0 deletions