From: kernel test robot <lkp@intel.com>
To: Daeho Jeong <daeho43@gmail.com>,
linux-kernel@vger.kernel.org,
linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com
Cc: llvm@lists.linux.dev, Daeho Jeong <daehojeong@google.com>,
oe-kbuild-all@lists.linux.dev
Subject: Re: [f2fs-dev] [PATCH] f2fs: introduce reserve_shrink mount option for filesystem shrinkage
Date: Fri, 11 Sep 2026 16:10:47 +0800 [thread overview]
Message-ID: <202609111633.uyRbsEUB-lkp@intel.com> (raw)
In-Reply-To: <20260910181057.640203-1-daeho43@gmail.com>
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
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Daeho Jeong <daeho43@gmail.com>,
linux-kernel@vger.kernel.org,
linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Daeho Jeong <daehojeong@google.com>
Subject: Re: [PATCH] f2fs: introduce reserve_shrink mount option for filesystem shrinkage
Date: Fri, 11 Sep 2026 16:10:47 +0800 [thread overview]
Message-ID: <202609111633.uyRbsEUB-lkp@intel.com> (raw)
In-Reply-To: <20260910181057.640203-1-daeho43@gmail.com>
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
next prev parent reply other threads:[~2026-09-11 8:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 18:10 [f2fs-dev] [PATCH] f2fs: introduce reserve_shrink mount option for filesystem shrinkage Daeho Jeong
2026-09-11 8:10 ` kernel test robot [this message]
2026-09-11 8:10 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202609111633.uyRbsEUB-lkp@intel.com \
--to=lkp@intel.com \
--cc=daeho43@gmail.com \
--cc=daehojeong@google.com \
--cc=kernel-team@android.com \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.