summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Valente <paolo.valente@linaro.org>2016-11-05 18:09:07 +0100
committerCon Kolivas <kernel@kolivas.org>2016-11-12 10:31:33 +1100
commit3f5c18ce3c193dacbdf2cd3097cd85844fbfd21e (patch)
tree9e9c82a1c3ee49505debae8a5e6c3e382a3e34a3
parent8bd247a5ffc4907bd2c9af105daa0b6eb9bd78fc (diff)
Add parentheses to complex macros
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
-rw-r--r--block/bfq-iosched.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
index a8c68878b268..88be34e0790e 100644
--- a/block/bfq-iosched.c
+++ b/block/bfq-iosched.c
@@ -77,19 +77,19 @@
static const u64 bfq_fifo_expire[2] = { NSEC_PER_SEC / 4, NSEC_PER_SEC / 8 };
/* Maximum backwards seek, in KiB. */
-static const int bfq_back_max = 16 * 1024;
+static const int bfq_back_max = (16 * 1024);
/* Penalty of a backwards seek, in number of sectors. */
static const int bfq_back_penalty = 2;
/* Idling period duration, in ns. */
-static u32 bfq_slice_idle = NSEC_PER_SEC / 125;
+static u32 bfq_slice_idle = (NSEC_PER_SEC / 125);
/* Minimum number of assigned budgets for which stats are safe to compute. */
static const int bfq_stats_min_budgets = 194;
/* Default maximum budget values, in sectors and number of requests. */
-static const int bfq_default_max_budget = 16 * 1024;
+static const int bfq_default_max_budget = (16 * 1024);
/*
* Async to sync throughput distribution is controlled as follows:
@@ -99,7 +99,7 @@ static const int bfq_default_max_budget = 16 * 1024;
static const int bfq_async_charge_factor = 10;
/* Default timeout values, in jiffies, approximating CFQ defaults. */
-static const int bfq_timeout = HZ / 8;
+static const int bfq_timeout = (HZ / 8);
struct kmem_cache *bfq_pool;
@@ -117,7 +117,7 @@ struct kmem_cache *bfq_pool;
/* Min number of samples required to perform peak-rate update */
#define BFQ_RATE_MIN_SAMPLES 32
/* Min observation time interval required to perform a peak-rate update (ns) */
-#define BFQ_RATE_MIN_INTERVAL 300*NSEC_PER_MSEC
+#define BFQ_RATE_MIN_INTERVAL (300*NSEC_PER_MSEC)
/* Target observation time interval for a peak-rate update (ns) */
#define BFQ_RATE_REF_INTERVAL NSEC_PER_SEC