Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10627527rwp; Fri, 21 Jul 2023 02:13:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlFRDPidWXL3s2sDYLD+fh0SZicrhkFoLQm8KsguEYeEZt/xSOrkPKWN+QKAgToDYHCt1dI7 X-Received: by 2002:a17:907:2e0b:b0:99b:6c47:1148 with SMTP id ig11-20020a1709072e0b00b0099b6c471148mr822219ejc.3.1689930787688; Fri, 21 Jul 2023 02:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689930787; cv=none; d=google.com; s=arc-20160816; b=a2jn3F+6+s5zOt+2D/9dI847oz4aPZB3zCRwGiX61NL2QGo9QvU0q3jHSEMLm2MZXs dxVwnAV60YPN2Iz+bOuvAzZWhv/OqASbRykm7vUbq984wudymkuMoMQ+XR//BWiQV2VY 5rGp79h9OS4u1EZyFkUeGzjDu0YgHCaugLMdTcQ14BTOfbND8d7zusdXHJaKuXRzy1qV rqgchgz1JMU3slK6KhFjkNnEye8SXD6rtJsfW4Ladc6U+HLVZwasiqAWkkr6bHYgnsiE 9k28WBfmS7nlL8gmq0EzDnpXFhsLgZVFjQroM0fzXho1DzbiissHVjh4abzP3H9qeL1/ rJmg== 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=LD4zktSnLlOqRGuSPD8eQPHzXGoVxBSf/OxYghE8otE=; fh=MlGqaUnvBjpXmiP990bdf+mzv9VjPrVaE5OVdv29XYE=; b=HOElBjn+Pgiw0V9dGlTE9pno+9f+7Od2/nR9ZID7qlYAQzjwUhB/3BVQm1Ljoexadj kgdtT94cy8h53MvsDCPyW9QTAtIhHEDPEIz/mpxBEo2gtBnzCnt0zFwXJZHTb3sm+qtg Ra9JTEA2LWbPLGevqv4LWjcGPffqGgSOM3VhAB3w4SPSrPu5oAy7XolTWw/RmY8HFzp9 2PiNu/BSHfneVlrmNNEvOyR8rSSFrP9xs7+3XvqTy+pi5f5BlYjBxTaeWO+/PI5jolFz s+hADb+P+/jdKPc0SxLrQK05ZUqJfzxnOC5THyxVi4AlBQK9jxc0neSUbb44zlS4AIl4 ZEnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gx24-20020a170906f1d800b009930ef7f05dsi1765971ejb.908.2023.07.21.02.12.40; Fri, 21 Jul 2023 02:13:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231345AbjGUJJm (ORCPT + 99 others); Fri, 21 Jul 2023 05:09:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230515AbjGUJJm (ORCPT ); Fri, 21 Jul 2023 05:09:42 -0400 Received: from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com [45.249.212.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EA681984; Fri, 21 Jul 2023 02:09:40 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4R6kJt0Svwz4f3kp0; Fri, 21 Jul 2023 17:09:34 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP4 (Coremail) with SMTP id gCh0CgAHvrFPS7pkqi7fOQ--.527S2; Fri, 21 Jul 2023 17:09:36 +0800 (CST) From: Kemeng Shi To: tytso@mit.edu, adilger.kernel@dilger.ca, ritesh.list@gmail.com, ojaswin@linux.ibm.com, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Cc: shikemeng@huaweicloud.com Subject: [PATCH 00/10] A few fixes and cleanups to mballoc Date: Sat, 22 Jul 2023 01:09:57 +0800 Message-Id: <20230721171007.2065423-1-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgAHvrFPS7pkqi7fOQ--.527S2 X-Coremail-Antispam: 1UD129KBjvdXoW7JF4DJw1DJr15trW7Ar13Arb_yoWkGFg_Wa 4xJFyjqrWkJF1Uua4j9rZ0yFW5Kw4xCry5AF9aqa1UXF1fXanFv3WkAr43ZF4Uuw1UA345 Xa43Cry0k3WI9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbxAFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M280x2IEY4vEnII2IxkI6r1a6r45M28lY4IEw2IIxx k0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Ar0_tr1l84ACjcxK 6xIIjxv20xvEc7CjxVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7 xvwVC2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40E FcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr 0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8v x2IErcIFxwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F4 0E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1l IxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxV AFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rWUJVWrZr1UMIIF0xvEx4A2jsIE14v2 6r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0p RQo7tUUUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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-ext4@vger.kernel.org Hi all, this series contains some random fixes and cleanups to mballoc which include correct grp validation, fix data overflow and so on. More details can be found in respective patches. Besides, 'kvm-xfstest smoke' runs successfully without error. Thanks! Kemeng Shi (10): ext4: correct grp validation in ext4_mb_good_group ext4: avoid potential data overflow in next_linear_group ext4: return found group directly in ext4_mb_choose_next_group_p2_aligned ext4: use is_power_of_2 helper in ext4_mb_regular_allocator ext4: remove unnecessary return for void function ext4: replace the traditional ternary conditional operator with with max()/min() ext4: remove unused ext4_{set}/{clear}_bit_atomic ext4: return found group directly in ext4_mb_choose_next_group_goal_fast ext4: return found group directly in ext4_mb_choose_next_group_best_avail ext4: correct some stale comment of criteria fs/ext4/ext4.h | 2 -- fs/ext4/mballoc.c | 85 ++++++++++++++++++----------------------------- 2 files changed, 32 insertions(+), 55 deletions(-) -- 2.30.0