Message ID | cover.1669736350.git.nickyc975@zju.edu.cn |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp419391wrr; Tue, 29 Nov 2022 07:50:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf5xUcrQ4rM8bySpt5rZoDVtXVcXdwGdMLhJ84v0baGLQSfvwwPmJkyrNkbznt791ODlEeOl X-Received: by 2002:a17:906:6aca:b0:7ad:dfb5:a3f2 with SMTP id q10-20020a1709066aca00b007addfb5a3f2mr34706695ejs.351.1669737036286; Tue, 29 Nov 2022 07:50:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669737036; cv=none; d=google.com; s=arc-20160816; b=Vr+9YF23amlANtJB52+GxBXj0ehp+Yh0PkhXzeK+Uca6NZFFA2sjICk21xrpsjyUB7 5177TxYeYVq79YPcy8WnmyhN5Xfa/Bsc0gJ6+Gn9GXfVvnHm1ldJQQS5NFKUO99onFO1 YmB0vDvJGFu6AKFViWGLZuLYzFIMaB9QjW6lxSmDmF87e+XxHAfqt5eseNP+4prpbfCH Nu4aetmsA5iAch85ef2BzoL24IkSk6JlqiksBCqrxWwLuhOZoNKWMwzuuuCppDuHT9qq acMwwMvHUBH7NoNvZ4uV17N5ckmzt0IdboNpzqxMkMSMxmxNimuUjFuMaPw6HbwmMgla /v/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Pr0NUjwQWyheFdNfyfkXWHq0VFnWm+QGMC0eHf44u5I=; b=V8ql2dIUXAeh2PlTq8CjLJvfzXckFBlaSW5uu1tswri/PEKu+Z0bBE6A4QJo90EugS T00Xj9csrfdBu418is8TGo5Q3FtgraS2dast5YQWpodu6f5v/5cfQe7Zry76EA1nBHY+ 9t43w+cnXcuz84MFukoIVfU+qccmD9XUNAFL53kdUIzu+5ewg8x/E6WKvhMyIInuXleW 1/T+Ure0sPNwelIm1jfYTFoP9f4eik3Y/kNZyVn/NHnJlc9pUllaeDTGwRnPMU2lMP/T E0OXLfIXd3NGoS68XdMb0gkUh/I8+e7gV6CRwmUdJ+4PUrk0oiuPK7HWaXJxZRXyh5X0 BNXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk9-20020a170906b0c900b00770872942d8si9843065ejb.958.2022.11.29.07.50.05; Tue, 29 Nov 2022 07:50:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236004AbiK2PrP (ORCPT <rfc822;rbbytesnap@gmail.com> + 99 others); Tue, 29 Nov 2022 10:47:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235945AbiK2Pq4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 29 Nov 2022 10:46:56 -0500 Received: from zju.edu.cn (mail.zju.edu.cn [61.164.42.155]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ADEC459FED; Tue, 29 Nov 2022 07:46:54 -0800 (PST) Received: from localhost.localdomain (unknown [10.14.30.50]) by mail-app4 (Coremail) with SMTP id cS_KCgBnaMxfKYZjT2esCA--.15899S2; Tue, 29 Nov 2022 23:46:48 +0800 (CST) From: Jinlong Chen <nickyc975@zju.edu.cn> To: axboe@kernel.dk Cc: hch@lst.de, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, nickyc975@zju.edu.cn Subject: [PATCH v2 0/5] random improvements and cleanups for elevator.c Date: Tue, 29 Nov 2022 23:46:33 +0800 Message-Id: <cover.1669736350.git.nickyc975@zju.edu.cn> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: cS_KCgBnaMxfKYZjT2esCA--.15899S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Jr18JryrGr18tr15CF45Wrg_yoWxKFb_Za 97tas7Ja1DJ3Wjva47Ka43tr9xuF93X345A3W7JrWSyFW3GF4avrs7ZFZ8ur1rur42ywnI kF4jvFyxZwnrKjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbIkFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AK wVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20x vE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4UJVW0owA2z4x0Y4vEx4A2 jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oVCq3wAac4AC62xK8xCEY4 vEwIxC4wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv 7VC0I7IYx2IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r 1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCF04k20xvY0x0E wIxGrwCF04k20xvE74AGY7Cv6cx26r4fKr1UJr1l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2 IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v2 6r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2 IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv 67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf 9x0JUAkucUUUUU= X-CM-SenderInfo: qssqjiaqqzq6lmxovvfxof0/1tbiAgIJB1ZdtcpCQAABs5 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750846182250400288?= X-GMAIL-MSGID: =?utf-8?q?1750846182250400288?= |
Series |
random improvements and cleanups for elevator.c
|
|
Message
Jinlong Chen
Nov. 29, 2022, 3:46 p.m. UTC
The series slightly improves the readability of elevator.c. Changes in v2: - add patch 3 to further improve the readability (suggested by Christoph) - add Reviewed-by tags from Christoph Jinlong Chen (5): elevator: print none at first in elv_iosched_show even if the queue has a scheduler elevator: replace continue with else-if in elv_iosched_show elevator: print e->elevator_name instead of cur->elevator_name in elv_iosched_show elevator: repalce "len+name" with "name+len" in elv_iosched_show elevator: use bool instead of int as the return type of elv_iosched_allow_bio_merge block/elevator.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-)
Comments
On 11/29/22 8:46 AM, Jinlong Chen wrote: > The series slightly improves the readability of elevator.c. > > Changes in v2: > - add patch 3 to further improve the readability (suggested by Christoph) > - add Reviewed-by tags from Christoph > > Jinlong Chen (5): > elevator: print none at first in elv_iosched_show even if the queue > has a scheduler > elevator: replace continue with else-if in elv_iosched_show > elevator: print e->elevator_name instead of cur->elevator_name in > elv_iosched_show > elevator: repalce "len+name" with "name+len" in elv_iosched_show > elevator: use bool instead of int as the return type of > elv_iosched_allow_bio_merge > > block/elevator.c | 23 ++++++++++------------- > 1 file changed, 10 insertions(+), 13 deletions(-) Applied, with some commit message re-formatting. Please keep lines <= 74 chars.
On Tue, 29 Nov 2022 23:46:33 +0800, Jinlong Chen wrote: > The series slightly improves the readability of elevator.c. > > Changes in v2: > - add patch 3 to further improve the readability (suggested by Christoph) > - add Reviewed-by tags from Christoph > > Jinlong Chen (5): > elevator: print none at first in elv_iosched_show even if the queue > has a scheduler > elevator: replace continue with else-if in elv_iosched_show > elevator: print e->elevator_name instead of cur->elevator_name in > elv_iosched_show > elevator: repalce "len+name" with "name+len" in elv_iosched_show > elevator: use bool instead of int as the return type of > elv_iosched_allow_bio_merge > > [...] Applied, thanks! [1/5] elevator: print none at first in elv_iosched_show even if the queue has a scheduler commit: 7919d679ae09c0dc30dfecb7cbc02306cf95cdd7 [2/5] elevator: replace continue with else-if in elv_iosched_show commit: 5998249e3238428156b09911f1606b41113443c5 [3/5] elevator: print e->elevator_name instead of cur->elevator_name in elv_iosched_show commit: 7a3b3660fd30c028e7ae1cd82697933789962406 [4/5] elevator: repalce "len+name" with "name+len" in elv_iosched_show commit: c6451ede406b9f57fcd61d48433a6b8b2be862e3 [5/5] elevator: use bool instead of int as the return type of elv_iosched_allow_bio_merge commit: 8d283ee62b077968e218531b24260e1cc51bd484 Best regards,