From patchwork Fri Nov 25 15:53:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinlong Chen X-Patchwork-Id: 2241 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp4118440wrr; Fri, 25 Nov 2022 07:54:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf4M7OPbhjD5s6tFQww7w5NH8n5rGketS3rYOjK8fSyB15PuXO+mBV8d8sekxOE6ZVhDlh30 X-Received: by 2002:a17:906:e2cb:b0:7ad:c35a:ad76 with SMTP id gr11-20020a170906e2cb00b007adc35aad76mr33067088ejb.705.1669391694369; Fri, 25 Nov 2022 07:54:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669391694; cv=none; d=google.com; s=arc-20160816; b=fox0toMZEsIKOlUSEhxw//LjJ4jWdTRpoSezt/YvDnDyBbhyFye3j3+/85ncdMWub5 DXB594yLkvCsX5aKTgOkx48QZiinZCypQBctco9G8uewH8f6LOIorUipdTzvdtxzzRUd 7g7MRE3ETItyAvWvT5WJCXWl34fvGdKoSd7Rcfaft6I688ajnHHKReMUATbalELTJwTc dB6/kLI3Y19gqUcO2jMAyKQs/2GQE7fnHo3NUwizwcfFadMt+Izzet7ib1nN+x7JPE20 mXXt3ioL4LBNseSC8TwDL/cnzW0GQydI9H6eYjANwqY7hHShX6ii1EpKxMj3ypokWTbn bpFQ== 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=AA7yqYl0HHF2HShU99X7Emgvj8KNdNCC6luG7087+FQ=; b=KyNE+9UxYwIu4F6JiJ5bZVBkIUfi6dZo38lXuBefO4JXXu8Vjhb03Liqh7hJ5TY1TB hdQsrnQqv4DQH0DwUQb1onf2KmKa3GeMFjdNJpMDEiw7USkykcJjZ/4jUuQ77dDc6w74 6UakXOCzhUTGfDWux7QoSw4qD7fYLpIMFs8rEU0qDvMS5fIgSHIdV8nS21GJzojJuLcY 1FckoTwD8R3Id/6aQC6grjcwBi2ihUsT55zzs+Y6lC9aWk/DxXA8sMI9dZN3ENyThYpH Ju7vzhI5gk9t6BWRyGhgY2xWv828+w/YKnfM61PmnKF7OUayrCAIDX7Fq1KhgeBinS9I ejUg== 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 hq28-20020a1709073f1c00b0077156c9124esi4274497ejc.1001.2022.11.25.07.54.29; Fri, 25 Nov 2022 07:54:54 -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 S229839AbiKYPyD (ORCPT + 99 others); Fri, 25 Nov 2022 10:54:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbiKYPxk (ORCPT ); Fri, 25 Nov 2022 10:53:40 -0500 Received: from zju.edu.cn (mail.zju.edu.cn [61.164.42.155]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2411C4A9EF; Fri, 25 Nov 2022 07:53:29 -0800 (PST) Received: from localhost.localdomain (unknown [10.14.30.50]) by mail-app4 (Coremail) with SMTP id cS_KCgCXK97s5IBjv2N5CA--.23174S2; Fri, 25 Nov 2022 23:53:23 +0800 (CST) From: Jinlong Chen To: axboe@kernel.dk Cc: hch@lst.de, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, nickyc975@zju.edu.cn Subject: [PATCH 0/4] random improvements and cleanups for elevator.c Date: Fri, 25 Nov 2022 23:53:10 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CM-TRANSID: cS_KCgCXK97s5IBjv2N5CA--.23174S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYs7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Cr1j 6rxdM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2vYz4IE04k24VAvwVAKI4IrM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8Jw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAG YxC7MxAIw28IcxkI7VAKI48JMxAIw28IcVCjz48v1sIEY20_GFWkJr1UJwCFx2IqxVCFs4 IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1r MI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJV WUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j 6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcS sGvfC2KfnxnUUI43ZEXa7VUbHa0DUUUUU== X-CM-SenderInfo: qssqjiaqqzq6lmxovvfxof0/1tbiAgEDB1ZdtcjbFAAFs7 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750484065706276980?= X-GMAIL-MSGID: =?utf-8?q?1750484065706276980?= The series slightly improves the readability of elevator.c. Jinlong Chen (4): 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: 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 | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-)