btrfs: uapi: introduce BTRFS_DEFRAG_RANGE_MASK for later sanity check
authorQu Wenruo <wqu@suse.com>
Fri, 11 Feb 2022 06:41:40 +0000 (14:41 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 15 Feb 2022 15:20:04 +0000 (16:20 +0100)
commitd3394d779b146885a83586873e8c3f58a1176a3c
treeae3b485a7dab9d7944d457adad675b99d957d3f6
parent3086126664eef0424fa5680d058d8abccc465455
btrfs: uapi: introduce BTRFS_DEFRAG_RANGE_MASK for later sanity check

Add a mask for all supported defrag flags.  Replace the hard coded bit
constants with ones defined by bit shifts.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
include/uapi/linux/btrfs.h