diff options
author | David Sterba <dsterba@suse.com> | 2019-08-01 08:50:30 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-09-09 08:59:03 -0400 |
commit | e13976cf120307867206ef8e60545fe99019c963 (patch) | |
tree | c2b36f25c72e4eaf22c21543c45a8c1c1151fc63 /fs/btrfs/tree-log.c | |
parent | 82253cb6863ccada8df5a9548b35c5d5a12b90af (diff) |
btrfs: tree-log: convert defines to enums
Used only for in-memory state tracking.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 188e6f79ab4e..0b85b2ffbdfa 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -24,10 +24,12 @@ | |||
24 | * LOG_INODE_EXISTS means to log just enough to recreate the inode | 24 | * LOG_INODE_EXISTS means to log just enough to recreate the inode |
25 | * during log replay | 25 | * during log replay |
26 | */ | 26 | */ |
27 | #define LOG_INODE_ALL 0 | 27 | enum { |
28 | #define LOG_INODE_EXISTS 1 | 28 | LOG_INODE_ALL, |
29 | #define LOG_OTHER_INODE 2 | 29 | LOG_INODE_EXISTS, |
30 | #define LOG_OTHER_INODE_ALL 3 | 30 | LOG_OTHER_INODE, |
31 | LOG_OTHER_INODE_ALL, | ||
32 | }; | ||
31 | 33 | ||
32 | /* | 34 | /* |
33 | * directory trouble cases | 35 | * directory trouble cases |
@@ -81,10 +83,12 @@ | |||
81 | * The last stage is to deal with directories and links and extents | 83 | * The last stage is to deal with directories and links and extents |
82 | * and all the other fun semantics | 84 | * and all the other fun semantics |
83 | */ | 85 | */ |
84 | #define LOG_WALK_PIN_ONLY 0 | 86 | enum { |
85 | #define LOG_WALK_REPLAY_INODES 1 | 87 | LOG_WALK_PIN_ONLY, |
86 | #define LOG_WALK_REPLAY_DIR_INDEX 2 | 88 | LOG_WALK_REPLAY_INODES, |
87 | #define LOG_WALK_REPLAY_ALL 3 | 89 | LOG_WALK_REPLAY_DIR_INDEX, |
90 | LOG_WALK_REPLAY_ALL, | ||
91 | }; | ||
88 | 92 | ||
89 | static int btrfs_log_inode(struct btrfs_trans_handle *trans, | 93 | static int btrfs_log_inode(struct btrfs_trans_handle *trans, |
90 | struct btrfs_root *root, struct btrfs_inode *inode, | 94 | struct btrfs_root *root, struct btrfs_inode *inode, |