[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202601130514.GnuB5QCD-lkp@intel.com>
Date: Tue, 13 Jan 2026 06:28:34 +0800
From: kernel test robot <lkp@...el.com>
To: Brian Foster <bfoster@...hat.com>, linux-ext4@...r.kernel.org
Cc: oe-kbuild-all@...ts.linux.dev, Baokun Li <libaokun1@...wei.com>
Subject: Re: [PATCH v2] ext4: fix dirtyclusters double decrement on fs
shutdown
Hi Brian,
kernel test robot noticed the following build errors:
[auto build test ERROR on tytso-ext4/dev]
[also build test ERROR on linus/master v6.19-rc5 next-20260109]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Brian-Foster/ext4-fix-dirtyclusters-double-decrement-on-fs-shutdown/20260112-225259
base: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
patch link: https://lore.kernel.org/r/20260112143652.8085-1-bfoster%40redhat.com
patch subject: [PATCH v2] ext4: fix dirtyclusters double decrement on fs shutdown
config: arm64-randconfig-004-20260113 (https://download.01.org/0day-ci/archive/20260113/202601130514.GnuB5QCD-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260113/202601130514.GnuB5QCD-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601130514.GnuB5QCD-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from fs/ext4/mballoc.c:7185:
fs/ext4/mballoc-test.c: In function 'test_mark_diskspace_used_range':
>> fs/ext4/mballoc-test.c:570:15: error: too many arguments to function 'ext4_mb_mark_diskspace_used'
570 | ret = ext4_mb_mark_diskspace_used(ac, NULL, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/ext4/mballoc.c:4188:1: note: declared here
4188 | ext4_mb_mark_diskspace_used(struct ext4_allocation_context *ac, handle_t *handle)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/ext4_mb_mark_diskspace_used +570 fs/ext4/mballoc-test.c
6c5e0c9c21456f Kemeng Shi 2024-01-03 548
2b81493f8eb6fc Kemeng Shi 2024-01-03 549 static void
2b81493f8eb6fc Kemeng Shi 2024-01-03 550 test_mark_diskspace_used_range(struct kunit *test,
2b81493f8eb6fc Kemeng Shi 2024-01-03 551 struct ext4_allocation_context *ac,
2b81493f8eb6fc Kemeng Shi 2024-01-03 552 ext4_grpblk_t start,
2b81493f8eb6fc Kemeng Shi 2024-01-03 553 ext4_grpblk_t len)
2b81493f8eb6fc Kemeng Shi 2024-01-03 554 {
2b81493f8eb6fc Kemeng Shi 2024-01-03 555 struct super_block *sb = (struct super_block *)test->priv;
2b81493f8eb6fc Kemeng Shi 2024-01-03 556 int ret;
2b81493f8eb6fc Kemeng Shi 2024-01-03 557 void *bitmap;
2b81493f8eb6fc Kemeng Shi 2024-01-03 558 ext4_grpblk_t i, max;
2b81493f8eb6fc Kemeng Shi 2024-01-03 559
2b81493f8eb6fc Kemeng Shi 2024-01-03 560 /* ext4_mb_mark_diskspace_used will BUG if len is 0 */
2b81493f8eb6fc Kemeng Shi 2024-01-03 561 if (len == 0)
2b81493f8eb6fc Kemeng Shi 2024-01-03 562 return;
2b81493f8eb6fc Kemeng Shi 2024-01-03 563
2b81493f8eb6fc Kemeng Shi 2024-01-03 564 ac->ac_b_ex.fe_group = TEST_GOAL_GROUP;
2b81493f8eb6fc Kemeng Shi 2024-01-03 565 ac->ac_b_ex.fe_start = start;
2b81493f8eb6fc Kemeng Shi 2024-01-03 566 ac->ac_b_ex.fe_len = len;
2b81493f8eb6fc Kemeng Shi 2024-01-03 567
2b81493f8eb6fc Kemeng Shi 2024-01-03 568 bitmap = mbt_ctx_bitmap(sb, TEST_GOAL_GROUP);
2b81493f8eb6fc Kemeng Shi 2024-01-03 569 memset(bitmap, 0, sb->s_blocksize);
2b81493f8eb6fc Kemeng Shi 2024-01-03 @570 ret = ext4_mb_mark_diskspace_used(ac, NULL, 0);
2b81493f8eb6fc Kemeng Shi 2024-01-03 571 KUNIT_ASSERT_EQ(test, ret, 0);
2b81493f8eb6fc Kemeng Shi 2024-01-03 572
2b81493f8eb6fc Kemeng Shi 2024-01-03 573 max = EXT4_CLUSTERS_PER_GROUP(sb);
2b81493f8eb6fc Kemeng Shi 2024-01-03 574 i = mb_find_next_bit(bitmap, max, 0);
2b81493f8eb6fc Kemeng Shi 2024-01-03 575 KUNIT_ASSERT_EQ(test, i, start);
2b81493f8eb6fc Kemeng Shi 2024-01-03 576 i = mb_find_next_zero_bit(bitmap, max, i + 1);
2b81493f8eb6fc Kemeng Shi 2024-01-03 577 KUNIT_ASSERT_EQ(test, i, start + len);
2b81493f8eb6fc Kemeng Shi 2024-01-03 578 i = mb_find_next_bit(bitmap, max, i + 1);
2b81493f8eb6fc Kemeng Shi 2024-01-03 579 KUNIT_ASSERT_EQ(test, max, i);
2b81493f8eb6fc Kemeng Shi 2024-01-03 580 }
2b81493f8eb6fc Kemeng Shi 2024-01-03 581
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists