All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Chao Yu <chao@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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.
Date: Wed, 23 Sep 2026 04:57:19 +0200	[thread overview]
Message-ID: <202609230446.s7bSxkDS-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-09-23  2:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202609230446.s7bSxkDS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chao@kernel.org \
    --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.