Skip to content

Commit 3114739

Browse files
committed
btrfs: async-thread: rename DFT_THRESHOLD to DEFAULT_THRESHOLD
Rename the macro so it's obvious what it means. Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Anand Jain <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent ef8c004 commit 3114739

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/btrfs/async-thread.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ enum {
1818
};
1919

2020
#define NO_THRESHOLD (-1)
21-
#define DFT_THRESHOLD (32)
21+
#define DEFAULT_THRESHOLD (32)
2222

2323
struct btrfs_workqueue {
2424
struct workqueue_struct *normal_wq;
@@ -94,9 +94,9 @@ struct btrfs_workqueue *btrfs_alloc_workqueue(struct btrfs_fs_info *fs_info,
9494

9595
ret->limit_active = limit_active;
9696
if (thresh == 0)
97-
thresh = DFT_THRESHOLD;
97+
thresh = DEFAULT_THRESHOLD;
9898
/* For low threshold, disabling threshold is a better choice */
99-
if (thresh < DFT_THRESHOLD) {
99+
if (thresh < DEFAULT_THRESHOLD) {
100100
ret->current_active = limit_active;
101101
ret->thresh = NO_THRESHOLD;
102102
} else {

0 commit comments

Comments
 (0)