lkml.org 
[lkml]   [2024]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v4 0/3] Fix crashes and warnings in ext4 unit test
Date
v3->v4:
-fix that sbi->s_dirtyclusters_counter is used before
initialization.

v2->v3:
-fix warning that sb->s_umount is still held when unit test finishs
-fix warning that sbi->s_freeclusters_counter is used before
initialization.

v1->v2:
-properly handle error from sget()

Previously, the new mballoc unit tests are only tested by running
"./tools/testing/kunit/kunit.py run ..." in which case only rare configs
are enabled.
This series fixes issues when more debug configs are enabled. Fixes are
tested with and without kunit_tool [1].

[1] https://docs.kernel.org/dev-tools/kunit/run_manual.html

Kemeng Shi (3):
ext4: alloc test super block from sget
ext4: hold group lock in ext4 kunit test
ext4: initialize sbi->s_freeclusters_counter and
sbi->s_dirtyclusters_counter before use in kunit test

fs/ext4/mballoc-test.c | 85 +++++++++++++++++++++++++++++++++---------
1 file changed, 68 insertions(+), 17 deletions(-)

--
2.30.0


\
 
 \ /
  Last update: 2024-05-27 15:33    [W:0.135 / U:0.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site