projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e13976c
)
btrfs: async-thread: convert defines to enums
author
David Sterba
<dsterba@suse.com>
Thu, 1 Aug 2019 12:50:33 +0000
(14:50 +0200)
committer
David Sterba
<dsterba@suse.com>
Mon, 9 Sep 2019 12:59:03 +0000
(14:59 +0200)
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/async-thread.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/async-thread.c
b/fs/btrfs/async-thread.c
index 122cb97c79098ec10623a59d1101a191c7038a6a..2e9e13ffbd08290926d9e54e33ddfc4216624623 100644
(file)
--- 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)