diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2015-01-19 14:45:03 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-01-21 17:07:35 +0100 |
commit | 751fe9b91638c34eeae6e1b469b7ec6184d6107e (patch) | |
tree | 6e154fe62f17ff403fc48c1aa0931dafc0870eac /disk-io.h | |
parent | f66d17814b58697aac579c90ee3c906e6f65720b (diff) |
btrfs-progs: Cleanup, use bitshift instead of immediate number in btrfs_open_ctree_flags.
Change the immediate number in btrfs_open_ctree_flags to bit shift.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'disk-io.h')
-rw-r--r-- | disk-io.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -26,13 +26,13 @@ #define BTRFS_SUPER_MIRROR_SHIFT 12 enum btrfs_open_ctree_flags { - OPEN_CTREE_WRITES = 1, - OPEN_CTREE_PARTIAL = 2, - OPEN_CTREE_BACKUP_ROOT = 4, - OPEN_CTREE_RECOVER_SUPER = 8, - OPEN_CTREE_RESTORE = 16, - OPEN_CTREE_NO_BLOCK_GROUPS = 32, - OPEN_CTREE_EXCLUSIVE = 64, + OPEN_CTREE_WRITES = (1 << 0), + OPEN_CTREE_PARTIAL = (1 << 1), + OPEN_CTREE_BACKUP_ROOT = (1 << 2), + OPEN_CTREE_RECOVER_SUPER = (1 << 3), + OPEN_CTREE_RESTORE = (1 << 4), + OPEN_CTREE_NO_BLOCK_GROUPS = (1 << 5), + OPEN_CTREE_EXCLUSIVE = (1 << 6), }; static inline u64 btrfs_sb_offset(int mirror) |