btrfs: Factor out in_range macro
authorNikolay Borisov <nborisov@suse.com>
Wed, 27 Mar 2019 12:24:15 +0000 (14:24 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:37 +0000 (19:02 +0200)
commite74e3993bcf6a1d119a2bbe7af2cc278a147f930
treef7956a3b5b0013254f66b0d6723d2ce32300f782
parent60dfdf25bd31b94d0ed8e0ea50964ff22cc36a87
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>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/volumes.c