btrfs: Factor out in_range macro
This is used in more than one places so let's factor it out in ctree.h. No functional changes. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:

committed by
David Sterba

parent
60dfdf25bd
commit
e74e3993bc
@@ -1505,7 +1505,6 @@ error_bdev_put:
|
||||
* Try to find a chunk that intersects [start, start + len] range and when one
|
||||
* such is found, record the end of it in *start
|
||||
*/
|
||||
#define in_range(b, first, len) ((b) >= (first) && (b) < (first) + (len))
|
||||
static bool contains_pending_extent(struct btrfs_device *device, u64 *start,
|
||||
u64 len)
|
||||
{
|
||||
|
Reference in New Issue
Block a user