All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Bo Zhang <zhangbo0325@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH] mm: vmscan: avoid anon scanning for GFP_NOIO with low swapcache
Date: Sun, 6 Sep 2026 09:40:20 +0800	[thread overview]
Message-ID: <202609060948.O3LniW01-lkp@intel.com> (raw)
In-Reply-To: <20260903040131.4016290-1-zhangbo56@xiaomi.com>

Hi Bo,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on akpm-mm/mm-everything]

url:    https://github.com/intel-lab-lkp/linux/commits/Bo-Zhang/mm-vmscan-avoid-anon-scanning-for-GFP_NOIO-with-low-swapcache/20260903-120131
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/20260903040131.4016290-1-zhangbo56%40xiaomi.com
patch subject: [RFC PATCH] mm: vmscan: avoid anon scanning for GFP_NOIO with low swapcache
config: arc-allnoconfig (https://download.01.org/0day-ci/archive/20260906/202609060948.O3LniW01-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260906/202609060948.O3LniW01-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/202609060948.O3LniW01-lkp@intel.com/

All errors (new ones prefixed by >>):

   mm/vmscan.c: In function 'reclaimable_anon_is_low':
>> mm/vmscan.c:396:47: error: 'NR_SWAPCACHE' undeclared (first use in this function)
     396 |         swapcache = lruvec_page_state(lruvec, NR_SWAPCACHE);
         |                                               ^~~~~~~~~~~~
   mm/vmscan.c:396:47: note: each undeclared identifier is reported only once for each function it appears in


vim +/NR_SWAPCACHE +396 mm/vmscan.c

   384	
   385	static inline bool reclaimable_anon_is_low(struct mem_cgroup *memcg,
   386			int nid, struct scan_control *sc)
   387	{
   388		struct lruvec *lruvec = get_lruvec(memcg, nid);
   389		unsigned long anon_pages, swapcache;
   390	
   391		if (!sc || (sc->gfp_mask & __GFP_IO))
   392			return false;
   393	
   394		anon_pages = lruvec_page_state(lruvec, NR_INACTIVE_ANON) +
   395			     lruvec_page_state(lruvec, NR_ACTIVE_ANON);
 > 396		swapcache = lruvec_page_state(lruvec, NR_SWAPCACHE);
   397	
   398		return swapcache < min(anon_pages >> 6, SWAP_CLUSTER_MAX);
   399	}
   400	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

      parent reply	other threads:[~2026-09-06  1:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-03  4:01 [RFC PATCH] mm: vmscan: avoid anon scanning for GFP_NOIO with low swapcache Bo Zhang
2026-09-03 10:35 ` Barry Song
2026-09-03 12:49   ` Bo Zhang
2026-09-03 13:03 ` Johannes Weiner
2026-09-04  2:07   ` Bo Zhang
2026-09-04 16:38     ` Johannes Weiner
2026-09-05 21:21 ` kernel test robot
2026-09-06  1:18 ` [PATCH v2] " Bo Zhang
2026-09-06  2:46   ` Andrew Morton
2026-09-06  3:56     ` Bo Zhang
2026-09-06  4:53   ` Barry Song
2026-09-06  5:04     ` Bo Zhang
2026-09-06  5:49     ` Kairui Song
2026-09-06  1:40 ` kernel test robot [this message]

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=202609060948.O3LniW01-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=zhangbo0325@gmail.com \
    /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.