{"id":2234981,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2234981/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-ext4/patch/20260508121539.4174601-11-libaokun@linux.alibaba.com/","project":{"id":8,"url":"http://patchwork.ozlabs.org/api/1.2/projects/8/?format=json","name":"Linux ext4 filesystem development","link_name":"linux-ext4","list_id":"linux-ext4.vger.kernel.org","list_email":"linux-ext4@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260508121539.4174601-11-libaokun@linux.alibaba.com>","list_archive_url":null,"date":"2026-05-08T12:15:32","name":"[RFC,10/17] ext4: use fast incremental CRC update in ext4_free_inode()","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"ad5d82c28095f0751da4d6d2bdbed6c645b55e33","submitter":{"id":92757,"url":"http://patchwork.ozlabs.org/api/1.2/people/92757/?format=json","name":"Baokun Li","email":"libaokun@linux.alibaba.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-ext4/patch/20260508121539.4174601-11-libaokun@linux.alibaba.com/mbox/","series":[{"id":503377,"url":"http://patchwork.ozlabs.org/api/1.2/series/503377/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-ext4/list/?series=503377","date":"2026-05-08T12:15:22","name":"ext4/lib-crc: LBS performance part 1 - incremental CRC32c for bitmap checksums","version":1,"mbox":"http://patchwork.ozlabs.org/series/503377/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2234981/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2234981/checks/","tags":{},"related":[],"headers":{"Return-Path":"\n <SRS0=GbWF=DF=vger.kernel.org=linux-ext4+bounces-16372-patchwork-incoming=ozlabs.org@ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-ext4@vger.kernel.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","patchwork-incoming@ozlabs.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com\n header.a=rsa-sha256 header.s=default header.b=h3SnqpWM;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=gbwf=df=vger.kernel.org=linux-ext4+bounces-16372-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)","gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.105.105.114 arc.chain=subspace.kernel.org","gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.alibaba.com","gandalf.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com\n header.a=rsa-sha256 header.s=default header.b=h3SnqpWM;\n\tdkim-atps=neutral","gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16372-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=linux.alibaba.com\n header.i=@linux.alibaba.com header.b=\"h3SnqpWM\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=115.124.30.101","smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.alibaba.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=linux.alibaba.com"],"Received":["from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4gBp5G3sJfz1yJq\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 08 May 2026 22:16:50 +1000 (AEST)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4gBp5G3QVdz4wCG\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 08 May 2026 22:16:50 +1000 (AEST)","by gandalf.ozlabs.org (Postfix)\n\tid 4gBp5G3MH1z4wKD; Fri, 08 May 2026 22:16:50 +1000 (AEST)","from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4gBp5B6jq6z4wCG\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 08 May 2026 22:16:46 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id B624B30078BB\n\tfor <patchwork-incoming@ozlabs.org>; Fri,  8 May 2026 12:16:20 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 725EB3DB622;\n\tFri,  8 May 2026 12:16:19 +0000 (UTC)","from out30-101.freemail.mail.aliyun.com\n (out30-101.freemail.mail.aliyun.com [115.124.30.101])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id DDA7D3DB652;\n\tFri,  8 May 2026 12:16:16 +0000 (UTC)","from\n x31h02109.sqa.na131.tbsite.net(mailfrom:libaokun@linux.alibaba.com\n fp:SMTPD_---0X2XQgqK_1778242567 cluster:ay36)\n          by smtp.aliyun-inc.com;\n          Fri, 08 May 2026 20:16:07 +0800"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1778242610; cv=pass;\n\tb=NtTJKWmRTyfh71GlMrcadwvkv1gbUjbybPcTfIloHg5ByIpea50aAAwFiCMqQab2SZl3mY6t/utyg5tBheNDGgJUHAT6NXe3Yt4YEsjH52u4okYIGW/0oAB61De1eYmjJ+kB8wXzhMzyOZVxQ5NhQTXLLGM9ROc87f+crvw0dKw1HF3HL0NMxQFTJlFg/5bOdVVY1Wxtn42jtuJTXwu72Mjhc9T2HqbrTfVr/W3I8P1l53oldyNHfe4+3dE3cWtGAu3V4ujRN33NOe6Af/g/7hf2+M6P9sTLboqS4KYGWyALoOxwCzgu0E4L3wUL1QXFF33+DrZLbMLQNYLbHjiD3A==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1778242579; cv=none;\n b=eAtNHaxsEd3LpHKSnITG3GXVWgdQMGz2sXWOpZ950L89rbHlW3aYvNzfVbfW7apSapnR+YOlc+S1QbF61My0mucBKT/b8FeuvMu+i9B6Rq2FNRElHLSJMqgXjwNcAA7WexkWIN52AyJfg/Z4m8wgZDYU+CQ+RySaGeGzKm61VDI="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1778242610; c=relaxed/relaxed;\n\tbh=Rlokru3c3o+OyN0sDITif8sT6fm26WlVenfbU5I/VP4=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=fi6zG7NW9XvSy286alfEKhwLrJERSyYu12g1upOBqCJIZXzs3pa9CRg6iy3wLs3iPKovG6thtd3oJ+OHqctSJkyMcDu6HoDKwnRZyjpY3xate+6qy5VRDxD25YgcbJUTlhbi0LTGiljDOITj8f7xWDK3WVCtn3kTn8sURbqZY944Hhce1mc/o85tztOeXJFr/AxRJylrnaAoQTDkPS1dFON5eegeEcX2va5zlnb/IkLwgelyfFYSjwtBNu9nRvtojVQQAOUolMHRoHtmo3s3bod+OEz54BCDvMAhXV0nk0NFmyjDLAKnyGf0k738xZ6BaRF50FgJPY/f9dXkQ9TEiw==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1778242579; c=relaxed/simple;\n\tbh=GU5GzNKyqcSOveYboJHbIMTB2oMGtzcAc4UAMgb3Ywg=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=PQMvpXG8Wyb1X2uihLldzDeILqu3Uaew/lM0VwHqudAuuLn8czTU5/sGLBjxy2hTGm36DRgPoPuhAeTgh7N5nhbb79SANaO57PD2wy+9sjQ2PmdFWUFJsKSnLOrUIoag2L31R+LvhtUeXkjohu/fJIKv/cg260jwUdwK0lbx6Y4="],"ARC-Authentication-Results":["i=2; gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.alibaba.com;\n dkim=pass (1024-bit key;\n unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com\n header.a=rsa-sha256 header.s=default header.b=h3SnqpWM; dkim-atps=neutral;\n spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16372-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org","i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.alibaba.com;\n spf=pass smtp.mailfrom=linux.alibaba.com;\n dkim=pass (1024-bit key) header.d=linux.alibaba.com\n header.i=@linux.alibaba.com header.b=h3SnqpWM;\n arc=none smtp.client-ip=115.124.30.101"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linux.alibaba.com; s=default;\n\tt=1778242568; h=From:To:Subject:Date:Message-ID:MIME-Version;\n\tbh=Rlokru3c3o+OyN0sDITif8sT6fm26WlVenfbU5I/VP4=;\n\tb=h3SnqpWMoVMXg0B4ZK3CW/6o5zc+4q+1JwvmR2qmtL+l7myx0l/RzZhKDFwcFIzU96g9gF1ldg9Mwiz+5GjV5Zu5wNy0F+XRpb6YRYtAeUwKlBxNfz7uTuWjtl4bGcDd6RLhBlBe8IYV0p9Cvxm1144SMG8jDkQnbp9eTip/7RM=","X-Alimail-AntiSpam":"\n AC=PASS;BC=-1|-1;BR=01201311R841e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037033178;MF=libaokun@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0X2XQgqK_1778242567;","From":"Baokun Li <libaokun@linux.alibaba.com>","To":"linux-ext4@vger.kernel.org","Cc":"linux-crypto@vger.kernel.org,\n\tebiggers@kernel.org,\n\tardb@kernel.org,\n\ttytso@mit.edu,\n\tadilger.kernel@dilger.ca,\n\tjack@suse.cz,\n\tyi.zhang@huawei.com,\n\tojaswin@linux.ibm.com,\n\tritesh.list@gmail.com,\n\tBaokun Li <libaokun@linux.alibaba.com>","Subject":"[PATCH RFC 10/17] ext4: use fast incremental CRC update in\n ext4_free_inode()","Date":"Fri,  8 May 2026 20:15:32 +0800","Message-ID":"<20260508121539.4174601-11-libaokun@linux.alibaba.com>","X-Mailer":"git-send-email 2.43.7","In-Reply-To":"<20260508121539.4174601-1-libaokun@linux.alibaba.com>","References":"<20260508121539.4174601-1-libaokun@linux.alibaba.com>","Precedence":"bulk","X-Mailing-List":"linux-ext4@vger.kernel.org","List-Id":"<linux-ext4.vger.kernel.org>","List-Subscribe":"<mailto:linux-ext4+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-ext4+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-Spam-Status":"No, score=-8.7 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tHEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,\n\tSPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_DKIM_WL autolearn=disabled\n\tversion=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"},"content":"Replace ext4_inode_bitmap_csum_set() with the newly added\next4_inode_bitmap_csum_set_fast() in ext4_free_inode() for incremental\ninode bitmap checksum update.\n\nThis is safe because:\n - At inode free time, the inode bitmap checksum has already been\n   initialized, so the old checksum is always valid.\n - The bitmap buffer modification and checksum update are protected\n   by the same group lock, ensuring the old checksum is consistent\n   with the bitmap content before the bit flip.\n\nSigned-off-by: Baokun Li <libaokun@linux.alibaba.com>\n---\n fs/ext4/ialloc.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c\nindex 3fd8f0099852..55eb69fbb4c9 100644\n--- a/fs/ext4/ialloc.c\n+++ b/fs/ext4/ialloc.c\n@@ -327,7 +327,7 @@ void ext4_free_inode(handle_t *handle, struct inode *inode)\n \t\tif (percpu_counter_initialized(&sbi->s_dirs_counter))\n \t\t\tpercpu_counter_dec(&sbi->s_dirs_counter);\n \t}\n-\text4_inode_bitmap_csum_set(sb, gdp, bitmap_bh);\n+\text4_inode_bitmap_csum_set_fast(sb, gdp, bit);\n \text4_group_desc_csum_set(sb, block_group, gdp);\n \text4_unlock_group(sb, block_group);\n \n","prefixes":["RFC","10/17"]}