summaryrefslogtreecommitdiff
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2019-03-27 15:24:15 +0300
committerDavid Sterba <dsterba@suse.com>2019-04-29 20:02:37 +0300
commite74e3993bcf6a1d119a2bbe7af2cc278a147f930 (patch)
treef7956a3b5b0013254f66b0d6723d2ce32300f782 /fs/btrfs/volumes.c
parent60dfdf25bd31b94d0ed8e0ea50964ff22cc36a87 (diff)
downloadlinux-e74e3993bcf6a1d119a2bbe7af2cc278a147f930.tar.xz
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>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index d5e8ac6012ec..7fabbbae3c62 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -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)
{