Btrfs: refactor btrfs_extent_same() slightly
authorOmar Sandoval <osandov@fb.com>
Wed, 18 Jan 2017 07:37:38 +0000 (23:37 -0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Feb 2017 14:50:58 +0000 (15:50 +0100)
commitfc4badd9fe6aab008b85024f0e6af9b58cca283c
tree57d81e2c511dde2b48d87fc3eda5e4397a6743b2
parent310712b2f73ac1da4c3a99fd9886e8b652727508
Btrfs: refactor btrfs_extent_same() slightly

This was originally a prep patch for changing the behavior on len=0, but
we went another direction with that. This still makes the function
slightly easier to follow.

Reviewed-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c