* [chao:feature/subpage_gcache_lfolio 13/41] fs/f2fs/cache.c:149:5-24: WARNING: atomic_dec_and_test variation before object free at line 150.
@ 2026-09-23 2:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-23 2:57 UTC (permalink / raw)
To: Chao Yu; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git feature/subpage_gcache_lfolio
head: 85e9b85e94464a410d9809d9743aea8f7c49ddc5
commit: ec9281a9d7bb7b46d8a921f9f1c6a4a17f4c3817 [13/41] f2fs: cache: implement metadata cache
config: parisc-randconfig-r2103-20260923 (https://download.01.org/0day-ci/archive/20260923/202609230446.s7bSxkDS-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 8.5.0
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/202609230446.s7bSxkDS-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> fs/f2fs/cache.c:149:5-24: WARNING: atomic_dec_and_test variation before object free at line 150.
vim +149 fs/f2fs/cache.c
145
146 static bool f2fs_cache_put(struct f2fs_cached_block *entry)
147 {
148 WARN_ON_ONCE(!f2fs_cache_refcount(entry));
> 149 if (atomic_dec_and_test(&entry->refcount)) {
> 150 f2fs_free_cache(entry);
151 return true;
152 }
153 return false;
154 }
155
--
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-23 2:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-23 2:57 [chao:feature/subpage_gcache_lfolio 13/41] fs/f2fs/cache.c:149:5-24: WARNING: atomic_dec_and_test variation before object free at line 150 kernel test robot
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.