]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
btrfs: async-thread: rename DFT_THRESHOLD to DEFAULT_THRESHOLD
authorDavid Sterba <dsterba@suse.com>
Thu, 9 Jan 2025 10:24:51 +0000 (11:24 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Jan 2025 13:53:23 +0000 (14:53 +0100)
Rename the macro so it's obvious what it means.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/async-thread.c

index 361a866c19955ac3cdea182652a7cd2a0da34e19..a4c51600a408b4c473ac100f5140f0bc4fb56731 100644 (file)
@@ -18,7 +18,7 @@ enum {
 };
 
 #define NO_THRESHOLD (-1)
-#define DFT_THRESHOLD (32)
+#define DEFAULT_THRESHOLD (32)
 
 struct btrfs_workqueue {
        struct workqueue_struct *normal_wq;
@@ -94,9 +94,9 @@ struct btrfs_workqueue *btrfs_alloc_workqueue(struct btrfs_fs_info *fs_info,
 
        ret->limit_active = limit_active;
        if (thresh == 0)
-               thresh = DFT_THRESHOLD;
+               thresh = DEFAULT_THRESHOLD;
        /* For low threshold, disabling threshold is a better choice */
-       if (thresh < DFT_THRESHOLD) {
+       if (thresh < DEFAULT_THRESHOLD) {
                ret->current_active = limit_active;
                ret->thresh = NO_THRESHOLD;
        } else {