mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* fs/f2fs/cache.c:147:5-24: WARNING: atomic_dec_and_test variation before object free at line 148.
@ 2026-11-06 12:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-06 12:08 UTC (permalink / raw)
  To: Chao Yu; +Cc: oe-kbuild-all, linux-kernel, Jaegeuk Kim, Zhiguo Niu

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f66469d9905b39d2c260a15d7d6db450f4db67c1
commit: 4e80250bcfbc689efc6fd4d1b4e9d581ac3a7ea1 f2fs: cache: implement metadata cache
date:   7 weeks ago
config: loongarch-randconfig-r2105-20261104 (https://download.01.org/0day-ci/archive/20261106/202611061201.znvqT1oN-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project e2e3d6c39cfebec9eace23629a5a103df2c79ba6)

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
| Fixes: 4e80250bcfbc ("f2fs: cache: implement metadata cache")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611061201.znvqT1oN-lkp@intel.com/

cocci warnings: (new ones prefixed by >>)
>> fs/f2fs/cache.c:147:5-24: WARNING: atomic_dec_and_test variation before object free at line 148.

vim +147 fs/f2fs/cache.c

   143	
   144	static bool f2fs_cache_put(struct f2fs_cached_block *entry)
   145	{
   146		WARN_ON_ONCE(!f2fs_cache_refcount(entry));
 > 147		if (atomic_dec_and_test(&entry->refcount)) {
 > 148			f2fs_free_cache(entry);
   149			return true;
   150		}
   151		return false;
   152	}
   153	

--
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-11-06 12:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06 12:08 fs/f2fs/cache.c:147:5-24: WARNING: atomic_dec_and_test variation before object free at line 148 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

all inboxes | Powered by JetHome®