summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-08-01 14:50:33 +0200
committerDavid Sterba <dsterba@suse.com>2019-09-09 14:59:03 +0200
commitf64ce7b84c471c5af97697e539a7b4babd73a780 (patch)
treeb04e717bf511e362cefb91e087b5eddb6b5a8484 /fs/btrfs/async-thread.c
parente13976cf120307867206ef8e60545fe99019c963 (diff)
downloadlinux-f64ce7b84c471c5af97697e539a7b4babd73a780.tar.gz
linux-f64ce7b84c471c5af97697e539a7b4babd73a780.tar.bz2
linux-f64ce7b84c471c5af97697e539a7b4babd73a780.zip
btrfs: async-thread: convert defines to enums
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/async-thread.c')
-rw-r--r--fs/btrfs/async-thread.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c
index 122cb97c7909..2e9e13ffbd08 100644
--- a/fs/btrfs/async-thread.c
+++ b/fs/btrfs/async-thread.c
@@ -12,9 +12,11 @@
#include "async-thread.h"
#include "ctree.h"
-#define WORK_DONE_BIT 0
-#define WORK_ORDER_DONE_BIT 1
-#define WORK_HIGH_PRIO_BIT 2
+enum {
+ WORK_DONE_BIT,
+ WORK_ORDER_DONE_BIT,
+ WORK_HIGH_PRIO_BIT,
+};
#define NO_THRESHOLD (-1)
#define DFT_THRESHOLD (32)