Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3004483yba; Mon, 8 Apr 2019 09:05:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoV6lSkRZkkggezmWGme0vVyGD/8Pp5eY22+30Rd2yD7Vcnz5Fkd2lk4C6yL7H4sHB9WJf X-Received: by 2002:a63:720c:: with SMTP id n12mr29325102pgc.348.1554739555453; Mon, 08 Apr 2019 09:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554739555; cv=none; d=google.com; s=arc-20160816; b=xkc8eeUxRFkwmF7ggfuq3jkAwt6XCNrv7TtniJsQhkit+A/7BD21sDckycc667x7DO 8+NYys/4Xh9g3y6cnZl8zWm6WCwFexJoiKBrhb+/MXKAmoMteBDfpqOEQEov/8fjd8Fp Koqz3oaMOA6iclfmpqYO+KGjQvovepnpmksje6KIlh6EoRTtP2p2tEe4V3RyxjJvI+mn WbwoYsegmaiUEYyplhwsj5dzhMlYfRmNRLXmczHUHh9Dg2U2hpZbHpCikkBb//2k8OcN Fgf7QnGQsDdxvI73wVczca+N8KpTri1fuBF6mcmIYjECH3UfG6lUrT+XMQI3XxNkhrsm BffA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=IGFlIYLsqW6F74U1ICzyYso+0owEPY2FrYOY2FAK1I0=; b=TfKRJeUMshVc8sNdwQyxMzYwOdXRpyx5i8A7DAybnd+i5R4ZBkMtZvBwnTLR10NC5f ImER867psrGkwHYnE/3Ss5+9NbsnWRNZDTZ5hOP2QeMEyez19to2qMSoC7xiufW901JW rfACF1lctOmCZeQy9zhbUoH8Nr/aI1IqiCFWCUp2YhxQ40fBF9416Pz8MPAtMZd5HyWq FDarbAM/MlpUkRjYMHkGUkW6vooue2wDa6YcV07+EGBGobEB6wml8qKlxF8yb2P6hrEU F4uMS9jVIie9KVf02lpwbuwuGLyQuh1RhedjSY4KWVnQFy5dIrMgKxHwid5p8X+JOixU 5qBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hGyqJlek; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m23si27223703pgc.550.2019.04.08.09.05.32; Mon, 08 Apr 2019 09:05:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hGyqJlek; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727829AbfDHPfu (ORCPT + 99 others); Mon, 8 Apr 2019 11:35:50 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39540 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726741AbfDHPfu (ORCPT ); Mon, 8 Apr 2019 11:35:50 -0400 Received: by mail-wr1-f66.google.com with SMTP id j9so16971957wrn.6; Mon, 08 Apr 2019 08:35:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=IGFlIYLsqW6F74U1ICzyYso+0owEPY2FrYOY2FAK1I0=; b=hGyqJlekz8znbVM4b/+W0TsdSzP/WtfkzERuIF/jdBldvqXFcv1j7YJ+OnTex2mqnJ o2RUqNAV1i1drDbcdl/1Z5yzo7ITVzAwlma7tCnxHrlmZUGXND/IqyqEVZx6Yxo0MuKO MPXNzFL0Q0EBb5oqMzddQV+fTI9Q20NK8BCmBezKitVrGZ7oJg9j8ib1UC2uv6FHhOPK RF6iIT2Hp+yQoxwoL4j4r82sCeW4L+j2meozBJI0I8BoeqPUAIkNSS5CHyl5dowjwZlD y9z6Xd6gEUZxJvKnHW1rNDcrmGBSYowWc7aSJzK5U2EF1fsIIGNBTqvYG9OQEyafPWdu YvLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IGFlIYLsqW6F74U1ICzyYso+0owEPY2FrYOY2FAK1I0=; b=J89WcKELusuOl5/kRYKCqZor1XVtPJVtg/41pcN7f2cxor26fU1OBkdgEPbIMGyBp+ xD7TnekiNlyJmrumEHLHojBPdrIyUy+yGaLi0vx8PclG1IapFaDqKwy1bIYxaYzRi6Tz CXwB2SMn3pwOcN0aOSTluwrQwxu+yau1wA0WkXOrt6xRfbUube0SWnPnRUxeUTVQWJOD cgG60Fl8ah0NtQSpAdd7csmMyu0JtEj+BbIRMUoFKzrpIc3MIsYlv/jVbTrVUxG9jODR dOgaEu9NsTKzp89AxF/pmMg3wqhR7vX0XQTDSvI+TDa2a6z5BFu+agBnYusdTgB/zx6H jCjg== X-Gm-Message-State: APjAAAUqdVKhdltDVKSI4Ay0/EXZRzB0AF6rVHWL2GU5oBk3VhCms9OV jXwKdt4PmSl8nYs4Pj3WUhWaSXZHwcM= X-Received: by 2002:a5d:6b10:: with SMTP id v16mr20401862wrw.294.1554737747863; Mon, 08 Apr 2019 08:35:47 -0700 (PDT) Received: from localhost.localdomain (93-34-117-55.ip49.fastwebnet.it. [93.34.117.55]) by smtp.gmail.com with ESMTPSA id f15sm36096647wru.21.2019.04.08.08.35.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Apr 2019 08:35:47 -0700 (PDT) From: Angelo Ruocco X-Google-Original-From: Angelo Ruocco To: linux-block@vger.kernel.org Cc: axboe@kernel.dk, paolo.valente@linaro.org, linux-kernel@vger.kernel.org, trivial@kernel.org Subject: [PATCH] block, bfq: fix some typos in comments Date: Mon, 8 Apr 2019 17:35:34 +0200 Message-Id: <20190408153534.6312-1-angeloruocco90@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some of the comments in the bfq files had typos. This patch fixes them. Signed-off-by: Angelo Ruocco Signed-off-by: Paolo Valente --- block/bfq-cgroup.c | 2 +- block/bfq-iosched.c | 16 ++++++++-------- block/bfq-iosched.h | 4 ++-- block/bfq-wf2q.c | 10 +++++----- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/block/bfq-cgroup.c b/block/bfq-cgroup.c index 2a74a3f2a8f7..793c027ca60e 100644 --- a/block/bfq-cgroup.c +++ b/block/bfq-cgroup.c @@ -1103,7 +1103,7 @@ struct cftype bfq_blkcg_legacy_files[] = { }, #endif /* CONFIG_DEBUG_BLK_CGROUP */ - /* the same statictics which cover the bfqg and its descendants */ + /* the same statistics which cover the bfqg and its descendants */ { .name = "bfq.io_service_bytes_recursive", .private = (unsigned long)&blkcg_policy_bfq, diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index ceb06abd73df..bcaa4bde3961 100644 --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c @@ -189,7 +189,7 @@ static const int bfq_default_max_budget = 16 * 1024; /* * When a sync request is dispatched, the queue that contains that * request, and all the ancestor entities of that queue, are charged - * with the number of sectors of the request. In constrast, if the + * with the number of sectors of the request. In contrast, if the * request is async, then the queue and its ancestor entities are * charged with the number of sectors of the request, multiplied by * the factor below. This throttles the bandwidth for async I/O, @@ -217,7 +217,7 @@ const int bfq_timeout = HZ / 8; * queue merging. * * As can be deduced from the low time limit below, queue merging, if - * successful, happens at the very beggining of the I/O of the involved + * successful, happens at the very beginning of the I/O of the involved * cooperating processes, as a consequence of the arrival of the very * first requests from each cooperator. After that, there is very * little chance to find cooperators. @@ -441,7 +441,7 @@ void bfq_schedule_dispatch(struct bfq_data *bfqd) /* * Lifted from AS - choose which of rq1 and rq2 that is best served now. - * We choose the request that is closesr to the head right now. Distance + * We choose the request that is closer to the head right now. Distance * behind the head is penalized and only allowed to a certain extent. */ static struct request *bfq_choose_req(struct bfq_data *bfqd, @@ -989,7 +989,7 @@ static unsigned int bfq_wr_duration(struct bfq_data *bfqd) * of several files * mplayer took 23 seconds to start, if constantly weight-raised. * - * As for higher values than that accomodating the above bad + * As for higher values than that accommodating the above bad * scenario, tests show that higher values would often yield * the opposite of the desired result, i.e., would worsen * responsiveness by allowing non-interactive applications to @@ -2636,8 +2636,8 @@ static bool bfq_allow_bio_merge(struct request_queue *q, struct request *rq, /* * bic still points to bfqq, then it has not yet been * redirected to some other bfq_queue, and a queue - * merge beween bfqq and new_bfqq can be safely - * fulfillled, i.e., bic can be redirected to new_bfqq + * merge between bfqq and new_bfqq can be safely + * fulfilled, i.e., bic can be redirected to new_bfqq * and bfqq can be put. */ bfq_merge_bfqqs(bfqd, bfqd->bio_bic, bfqq, @@ -3089,7 +3089,7 @@ static void __bfq_bfqq_expire(struct bfq_data *bfqd, struct bfq_queue *bfqq) /* * All in-service entities must have been properly deactivated * or requeued before executing the next function, which - * resets all in-service entites as no more in service. + * resets all in-service entities as no more in service. */ __bfq_bfqd_reset_in_service(bfqd); } @@ -5632,7 +5632,7 @@ static void bfq_prepare_request(struct request *rq, struct bio *bio) * preparation is that, after the prepare_request hook is invoked for * rq, rq may still be transformed into a request with no icq, i.e., a * request not associated with any queue. No bfq hook is invoked to - * signal this tranformation. As a consequence, should these + * signal this transformation. As a consequence, should these * preparation operations be performed when the prepare_request hook * is invoked, and should rq be transformed one moment later, bfq * would end up in an inconsistent state, because it would have diff --git a/block/bfq-iosched.h b/block/bfq-iosched.h index 60c148728cc5..e7dc07cf9a57 100644 --- a/block/bfq-iosched.h +++ b/block/bfq-iosched.h @@ -91,7 +91,7 @@ struct bfq_service_tree { * expiration. This peculiar definition allows for the following * optimization, not yet exploited: while a given entity is still in * service, we already know which is the best candidate for next - * service among the other active entitities in the same parent + * service among the other active entities in the same parent * entity. We can then quickly compare the timestamps of the * in-service entity with those of such best candidate. * @@ -142,7 +142,7 @@ struct bfq_weight_counter { * * Unless cgroups are used, the weight value is calculated from the * ioprio to export the same interface as CFQ. When dealing with - * ``well-behaved'' queues (i.e., queues that do not spend too much + * "well-behaved" queues (i.e., queues that do not spend too much * time to consume their budget and have true sequential behavior, and * when there are no external factors breaking anticipation) the * relative weights at each level of the cgroups hierarchy should be diff --git a/block/bfq-wf2q.c b/block/bfq-wf2q.c index 51ef1f00df80..d2ea98ef26a3 100644 --- a/block/bfq-wf2q.c +++ b/block/bfq-wf2q.c @@ -59,7 +59,7 @@ static bool bfq_update_parent_budget(struct bfq_entity *next_in_service); * bfq_update_next_in_service - update sd->next_in_service * @sd: sched_data for which to perform the update. * @new_entity: if not NULL, pointer to the entity whose activation, - * requeueing or repositionig triggered the invocation of + * requeueing or repositioning triggered the invocation of * this function. * @expiration: id true, this function is being invoked after the * expiration of the in-service entity @@ -90,7 +90,7 @@ static bool bfq_update_next_in_service(struct bfq_sched_data *sd, /* * If this update is triggered by the activation, requeueing - * or repositiong of an entity that does not coincide with + * or repositioning of an entity that does not coincide with * sd->next_in_service, then a full lookup in the active tree * can be avoided. In fact, it is enough to check whether the * just-modified entity has the same priority as @@ -1396,7 +1396,7 @@ static struct bfq_entity *bfq_first_active_entity(struct bfq_service_tree *st, * In this first case, update the virtual time in @st too (see the * comments on this update inside the function). * - * In constrast, if there is an in-service entity, then return the + * In contrast, if there is an in-service entity, then return the * entity that would be set in service if not only the above * conditions, but also the next one held true: the currently * in-service entity, on expiration, @@ -1479,12 +1479,12 @@ static struct bfq_entity *bfq_lookup_next_entity(struct bfq_sched_data *sd, * is being invoked as a part of the expiration path * of the in-service queue. In this case, even if * sd->in_service_entity is not NULL, - * sd->in_service_entiy at this point is actually not + * sd->in_service_entity at this point is actually not * in service any more, and, if needed, has already * been properly queued or requeued into the right * tree. The reason why sd->in_service_entity is still * not NULL here, even if expiration is true, is that - * sd->in_service_entiy is reset as a last step in the + * sd->in_service_entity is reset as a last step in the * expiration path. So, if expiration is true, tell * __bfq_lookup_next_entity that there is no * sd->in_service_entity. -- 2.17.1