* Re: [PATCH] f2fs: introduce reserve_shrink mount option for filesystem shrinkage
[not found] <20260910181057.640203-1-daeho43@gmail.com>
@ 2026-09-11 8:10 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-11 8:10 UTC (permalink / raw)
To: Daeho Jeong, linux-kernel, linux-f2fs-devel, kernel-team
Cc: llvm, oe-kbuild-all, Daeho Jeong
Hi Daeho,
kernel test robot noticed the following build warnings:
[auto build test WARNING on jaegeuk-f2fs/dev-test]
[also build test WARNING on jaegeuk-f2fs/dev linus/master v7.3-rc2 next-20260909]
[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/Daeho-Jeong/f2fs-introduce-reserve_shrink-mount-option-for-filesystem-shrinkage/20260910-111056
base: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev-test
patch link: https://lore.kernel.org/r/20260910181057.640203-1-daeho43%40gmail.com
patch subject: [PATCH] f2fs: introduce reserve_shrink mount option for filesystem shrinkage
config: powerpc-randconfig-001-20260911 (https://download.01.org/0day-ci/archive/20260911/202609111633.uyRbsEUB-lkp@intel.com/config)
compiler: clang version 21.1.8 (https://github.com/llvm/llvm-project 2078da43e25a4623cab2d0d60decddf709aaea28)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260911/202609111633.uyRbsEUB-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609111633.uyRbsEUB-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from fs/f2fs/debug.c:18:
>> fs/f2fs/f2fs.h:2663:6: warning: shift count >= width of type [-Wshift-count-overflow]
2663 | if (test_opt(sbi, RESERVE_SHRINK)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/f2fs/f2fs.h:157:26: note: expanded from macro 'test_opt'
157 | (F2FS_OPTION(sbi).opt & BIT(F2FS_MOUNT_##option))
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/vdso/bits.h:7:26: note: expanded from macro 'BIT'
7 | #define BIT(nr) (UL(1) << (nr))
| ^ ~~~~
1 warning generated.
--
In file included from fs/f2fs/gc.c:19:
>> fs/f2fs/f2fs.h:2663:6: warning: shift count >= width of type [-Wshift-count-overflow]
2663 | if (test_opt(sbi, RESERVE_SHRINK)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/f2fs/f2fs.h:157:26: note: expanded from macro 'test_opt'
157 | (F2FS_OPTION(sbi).opt & BIT(F2FS_MOUNT_##option))
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/vdso/bits.h:7:26: note: expanded from macro 'BIT'
7 | #define BIT(nr) (UL(1) << (nr))
| ^ ~~~~
>> fs/f2fs/gc.c:2495:13: warning: shift count >= width of type [-Wshift-count-overflow]
2495 | } else if (test_opt(sbi, RESERVE_SHRINK)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/f2fs/f2fs.h:157:26: note: expanded from macro 'test_opt'
157 | (F2FS_OPTION(sbi).opt & BIT(F2FS_MOUNT_##option))
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/vdso/bits.h:7:26: note: expanded from macro 'BIT'
7 | #define BIT(nr) (UL(1) << (nr))
| ^ ~~~~
fs/f2fs/gc.c:2498:3: warning: shift count >= width of type [-Wshift-count-overflow]
2498 | clear_opt(sbi, RESERVE_SHRINK);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/f2fs/f2fs.h:153:28: note: expanded from macro 'clear_opt'
153 | (F2FS_OPTION(sbi).opt &= ~BIT(F2FS_MOUNT_##option))
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/vdso/bits.h:7:26: note: expanded from macro 'BIT'
7 | #define BIT(nr) (UL(1) << (nr))
| ^ ~~~~
3 warnings generated.
--
In file included from fs/f2fs/super.c:34:
>> fs/f2fs/f2fs.h:2663:6: warning: shift count >= width of type [-Wshift-count-overflow]
2663 | if (test_opt(sbi, RESERVE_SHRINK)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/f2fs/f2fs.h:157:26: note: expanded from macro 'test_opt'
157 | (F2FS_OPTION(sbi).opt & BIT(F2FS_MOUNT_##option))
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/vdso/bits.h:7:26: note: expanded from macro 'BIT'
7 | #define BIT(nr) (UL(1) << (nr))
| ^ ~~~~
>> fs/f2fs/super.c:548:7: warning: shift count >= width of type [-Wshift-count-overflow]
548 | if (!test_opt(sbi, RESERVE_SHRINK))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/f2fs/f2fs.h:157:26: note: expanded from macro 'test_opt'
157 | (F2FS_OPTION(sbi).opt & BIT(F2FS_MOUNT_##option))
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/vdso/bits.h:7:26: note: expanded from macro 'BIT'
7 | #define BIT(nr) (UL(1) << (nr))
| ^ ~~~~
fs/f2fs/super.c:2326:6: warning: shift count >= width of type [-Wshift-count-overflow]
2326 | if (test_opt(sbi, RESERVE_SHRINK)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/f2fs/f2fs.h:157:26: note: expanded from macro 'test_opt'
157 | (F2FS_OPTION(sbi).opt & BIT(F2FS_MOUNT_##option))
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/vdso/bits.h:7:26: note: expanded from macro 'BIT'
7 | #define BIT(nr) (UL(1) << (nr))
| ^ ~~~~
fs/f2fs/super.c:2557:6: warning: shift count >= width of type [-Wshift-count-overflow]
2557 | if (test_opt(sbi, RESERVE_SHRINK))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/f2fs/f2fs.h:157:26: note: expanded from macro 'test_opt'
157 | (F2FS_OPTION(sbi).opt & BIT(F2FS_MOUNT_##option))
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/vdso/bits.h:7:26: note: expanded from macro 'BIT'
7 | #define BIT(nr) (UL(1) << (nr))
| ^ ~~~~
4 warnings generated.
--
In file included from fs/f2fs/sysfs.c:17:
>> fs/f2fs/f2fs.h:2663:6: warning: shift count >= width of type [-Wshift-count-overflow]
2663 | if (test_opt(sbi, RESERVE_SHRINK)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/f2fs/f2fs.h:157:26: note: expanded from macro 'test_opt'
157 | (F2FS_OPTION(sbi).opt & BIT(F2FS_MOUNT_##option))
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/vdso/bits.h:7:26: note: expanded from macro 'BIT'
7 | #define BIT(nr) (UL(1) << (nr))
| ^ ~~~~
>> fs/f2fs/sysfs.c:599:7: warning: shift count >= width of type [-Wshift-count-overflow]
599 | if (test_opt(sbi, RESERVE_SHRINK)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/f2fs/f2fs.h:157:26: note: expanded from macro 'test_opt'
157 | (F2FS_OPTION(sbi).opt & BIT(F2FS_MOUNT_##option))
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/vdso/bits.h:7:26: note: expanded from macro 'BIT'
7 | #define BIT(nr) (UL(1) << (nr))
| ^ ~~~~
2 warnings generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n])
Selected by [y]:
- PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=n] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y]
vim +2663 fs/f2fs/f2fs.h
2650
2651 static inline unsigned int get_available_block_count(struct f2fs_sb_info *sbi,
2652 struct inode *inode, bool cap)
2653 {
2654 block_t avail_user_block_count;
2655
2656 avail_user_block_count = sbi->user_block_count -
2657 sbi->current_reserved_blocks -
2658 sbi->alias_reserved_blocks;
2659
2660 if (test_opt(sbi, RESERVE_ROOT) && !__allow_reserved_root(sbi, inode, cap))
2661 avail_user_block_count -= F2FS_OPTION(sbi).root_reserved_blocks;
2662
> 2663 if (test_opt(sbi, RESERVE_SHRINK)) {
2664 if (avail_user_block_count > F2FS_OPTION(sbi).reserve_shrink_blocks)
2665 avail_user_block_count -= F2FS_OPTION(sbi).reserve_shrink_blocks;
2666 else
2667 avail_user_block_count = 0;
2668 }
2669
2670 if (unlikely(is_sbi_flag_set(sbi, SBI_CP_DISABLED))) {
2671 if (avail_user_block_count > sbi->unusable_block_count)
2672 avail_user_block_count -= sbi->unusable_block_count;
2673 else
2674 avail_user_block_count = 0;
2675 }
2676
2677 return avail_user_block_count;
2678 }
2679
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 8:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260910181057.640203-1-daeho43@gmail.com>
2026-09-11 8:10 ` [PATCH] f2fs: introduce reserve_shrink mount option for filesystem shrinkage kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox