Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2233312/?format=api
{ "id": 2233312, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2233312/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260506075900.3649944-1-libaokun@linux.alibaba.com/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/1.1/projects/8/?format=api", "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 }, "msgid": "<20260506075900.3649944-1-libaokun@linux.alibaba.com>", "date": "2026-05-06T07:59:00", "name": "ext4: enable mballoc kunit tests for blocksize > PAGE_SIZE", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "cc2230d24dd4da584ef438087ba2944cd95972a4", "submitter": { "id": 92757, "url": "http://patchwork.ozlabs.org/api/1.1/people/92757/?format=api", "name": "Baokun Li", "email": "libaokun@linux.alibaba.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260506075900.3649944-1-libaokun@linux.alibaba.com/mbox/", "series": [ { "id": 502932, "url": "http://patchwork.ozlabs.org/api/1.1/series/502932/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=502932", "date": "2026-05-06T07:59:00", "name": "ext4: enable mballoc kunit tests for blocksize > PAGE_SIZE", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502932/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2233312/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2233312/checks/", "tags": {}, "headers": { "Return-Path": "\n <SRS0=nV8y=DD=vger.kernel.org=linux-ext4+bounces-16323-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=jgh+oeU7;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;\n envelope-from=srs0=nv8y=dd=vger.kernel.org=linux-ext4+bounces-16323-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c04:e001:36c::12fc:5321\"\n 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=jgh+oeU7;\n\tdkim-atps=neutral", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16323-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=\"jgh+oeU7\"", "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 (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g9STt3BHjz1yJq\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 18:00:01 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g9STm4rHYz4wK7\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 17:59:56 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4g9STm4YdRz4wLB; Wed, 06 May 2026 17:59:56 +1000 (AEST)", "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\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 4g9STg2j7vz4wK7\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 06 May 2026 17:59:51 +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 EECD9303E8FA\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 6 May 2026 07:59:32 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 14AD13E0C53;\n\tWed, 6 May 2026 07:59:31 +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 E4845175A99\n\tfor <linux-ext4@vger.kernel.org>; Wed, 6 May 2026 07:59:27 +0000 (UTC)", "from\n x31h02109.sqa.na131.tbsite.net(mailfrom:libaokun@linux.alibaba.com\n fp:SMTPD_---0X2NNNzH_1778054345 cluster:ay36)\n by smtp.aliyun-inc.com;\n Wed, 06 May 2026 15:59:19 +0800" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1778054396; cv=pass;\n\tb=aLaFOUfGYeS2YFj+Qh9YC63E+NX1e2mxwq2CA+tiDKygBeGDOBsTbp2vTzs5nqNfnkL60LgnBMU+Y2LH/IEWuAt0tD99waeWA+o+gQ8dmS0n4wJYvnrk+MNFIMMyhO++TsEHlhJW9AHLZcehyM+5SCBEAe6PMOyr9MKX6vNRrtt1TzcG0SlAoqJeV+v7sZW+jEA9cPqCww+aPwfKuNN+Cd3V0vzpS/Sf98yYMYC9hdE+Ul4MtKls+yAnWJyETba6LkvpM+PK+w2NkzmI6YTKEqBCgimQOaK7NB3QvP2GhaczqlP5iv8Z1j6zRdUWGJIJUJ9T1IjDzQQNglXxNhoxTg==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1778054370; cv=none;\n b=YJmrOhejzNaXmHAXj4Cg5ZVuOw3ciimw0wUgp7J+gbcl0fIcquU+D7wKQnecJNwefwVpA6XPxnbGq4JPAdNvGGcVYgyIyXtMKQ6Id9xuSKqf18sw6S0/DsUA6xPekjZjGPNF69A5Xp6Urcebt5XvX+ULjHJsGL1BSRfyMH7QMHI=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1778054396; c=relaxed/relaxed;\n\tbh=tj2qyGlTzEhJKk0g2FB3xZdcuU2hlPJGLK2Tdm/8io0=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=KKFkNErNgKSSzVnvqKjlct/IwqlJh1krOMu9upC5BwnCwzBI1zdp5v9jznaXoI2jrRm8LC2RZrydAxZBSPDehDK0kBU9RsmPNioAEfdHzmZ1arkqXhR7thxmsoHp+AnEh/gYUC+Zyp7fODQMyf74C1GL2ilLcOWm85/m+vI8fQdx6PPk2OO5P9CRUlhzestT9pqImpKXFP5xbGUyStLVaRfvkaysmyeTvhcLmEZpMyeqfCoo5DSe8uICPo4H5DV8fvlqca/MaUUrWWFcVoAlvqPLBtJMhMnfyXVldN9icKUvpqAOoBuswW9jddNVL6xgSTC7xfwencC+wq94cKnhCg==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1778054370; c=relaxed/simple;\n\tbh=4Vb9bxi6YN8kP5rRd5nyb3Sr7NSKQDWV51h6DBoHaq4=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=SPKuSDWhlC6ue8Zs93BrlCfNivR/Rqfu4IO4/HCtCVh9zrpmWWlAOYLmKaCUrQf8mgFePfDEdBKYMncuaMS2VeVc0orJblRKfb0SwwEpsTofGXLyE3MoQKIYI6bsMhBRc61z1z4fALzzN+xutmsGxc99+xOeZ6T3BKZtRMbayjw=" ], "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=jgh+oeU7; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16323-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=jgh+oeU7;\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=1778054360; h=From:To:Subject:Date:Message-ID:MIME-Version;\n\tbh=tj2qyGlTzEhJKk0g2FB3xZdcuU2hlPJGLK2Tdm/8io0=;\n\tb=jgh+oeU7FWLlaHkcIANt+HaS+gLfq3KPmLuAYTNcxDDcmby80tgXigWMv0R0Yv997csv7zDOZlyMA9kTNoxcFBaLxPVave2T8RoEj6qTXAHM8oCoBcdlGnNvpn1hrXkwMDyFhJ9MA0/yvktMOXn1UMa/6QGlL3UcA8cMfaS67QY=", "X-Alimail-AntiSpam": "\n AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037026112;MF=libaokun@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0X2NNNzH_1778054345;", "From": "Baokun Li <libaokun@linux.alibaba.com>", "To": "linux-ext4@vger.kernel.org", "Cc": "tytso@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\tlibaokun@linux.alibaba.com", "Subject": "[PATCH] ext4: enable mballoc kunit tests for blocksize > PAGE_SIZE", "Date": "Wed, 6 May 2026 15:59:00 +0800", "Message-ID": "<20260506075900.3649944-1-libaokun@linux.alibaba.com>", "X-Mailer": "git-send-email 2.43.7", "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": "With Large Block Size (LBS) support, ext4 can now use block sizes larger\nthan PAGE_SIZE. The mballoc kunit tests previously skipped three test\ncases (test_mb_mark_used, test_mb_free_blocks, test_mb_mark_used_cost)\nunder this configuration because the buddy cache inode's folio mapping\norder was never initialized in the test harness.\n\nThe real mount path configures s_min_folio_order and s_max_folio_order\nin ext4_fill_super(), which allows ext4_set_inode_mapping_order() to\nset up the correct folio order for the buddy cache inode. The kunit\ntest bypasses ext4_fill_super(), so the mapping order stayed at zero\nand __filemap_get_folio() allocated order-0 folios too small for LBS.\n\nInitialize s_min_folio_order and s_max_folio_order in mbt_init_sb_layout()\nto mirror ext4_fill_super() behavior, enabling properly sized folio\nallocations and removing the three blocksize > PAGE_SIZE skips.\n\nSigned-off-by: Baokun Li <libaokun@linux.alibaba.com>\n---\n fs/ext4/mballoc-test.c | 14 ++------------\n 1 file changed, 2 insertions(+), 12 deletions(-)", "diff": "diff --git a/fs/ext4/mballoc-test.c b/fs/ext4/mballoc-test.c\nindex 90ed505fa4b1..04bc9f773d63 100644\n--- a/fs/ext4/mballoc-test.c\n+++ b/fs/ext4/mballoc-test.c\n@@ -206,6 +206,8 @@ static void mbt_init_sb_layout(struct super_block *sb,\n \tsbi->s_desc_per_block_bits =\n \t\tsb->s_blocksize_bits - (fls(layout->desc_size) - 1);\n \tsbi->s_desc_per_block = 1 << sbi->s_desc_per_block_bits;\n+\tsbi->s_min_folio_order = get_order(sb->s_blocksize);\n+\tsbi->s_max_folio_order = sbi->s_min_folio_order;\n \n \tes->s_first_data_block = cpu_to_le32(0);\n \tes->s_blocks_count_lo = cpu_to_le32(layout->blocks_per_group *\n@@ -791,10 +793,6 @@ static void test_mb_mark_used(struct kunit *test)\n \tstruct test_range ranges[TEST_RANGE_COUNT];\n \tint i;\n \n-\t/* buddy cache assumes that each page contains at least one block */\n-\tif (sb->s_blocksize > PAGE_SIZE)\n-\t\tkunit_skip(test, \"blocksize exceeds pagesize\");\n-\n \tbitmap = kunit_kzalloc(test, sb->s_blocksize, GFP_KERNEL);\n \tKUNIT_ASSERT_NOT_ERR_OR_NULL(test, bitmap);\n \tbuddy = kunit_kzalloc(test, sb->s_blocksize, GFP_KERNEL);\n@@ -858,10 +856,6 @@ static void test_mb_free_blocks(struct kunit *test)\n \tint i;\n \tstruct test_range ranges[TEST_RANGE_COUNT];\n \n-\t/* buddy cache assumes that each page contains at least one block */\n-\tif (sb->s_blocksize > PAGE_SIZE)\n-\t\tkunit_skip(test, \"blocksize exceeds pagesize\");\n-\n \tbitmap = kunit_kzalloc(test, sb->s_blocksize, GFP_KERNEL);\n \tKUNIT_ASSERT_NOT_ERR_OR_NULL(test, bitmap);\n \tbuddy = kunit_kzalloc(test, sb->s_blocksize, GFP_KERNEL);\n@@ -905,10 +899,6 @@ static void test_mb_mark_used_cost(struct kunit *test)\n \tint i, j;\n \tunsigned long start, end, all = 0;\n \n-\t/* buddy cache assumes that each page contains at least one block */\n-\tif (sb->s_blocksize > PAGE_SIZE)\n-\t\tkunit_skip(test, \"blocksize exceeds pagesize\");\n-\n \tret = ext4_mb_load_buddy_test(sb, TEST_GOAL_GROUP, &e4b);\n \tKUNIT_ASSERT_EQ(test, ret, 0);\n \n", "prefixes": [] }