From: kernel test robot <lkp@intel.com>
To: Barry Song <21cnbao@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH RFC] mm: count zeromap read and set for swapout and swapin
Date: Sun, 27 Oct 2024 12:38:03 +0800 [thread overview]
Message-ID: <202410271256.54HHdzzV-lkp@intel.com> (raw)
In-Reply-To: <20241027011959.9226-1-21cnbao@gmail.com>
Hi Barry,
[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/Barry-Song/mm-count-zeromap-read-and-set-for-swapout-and-swapin/20241027-092054
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20241027011959.9226-1-21cnbao%40gmail.com
patch subject: [PATCH RFC] mm: count zeromap read and set for swapout and swapin
config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20241027/202410271256.54HHdzzV-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241027/202410271256.54HHdzzV-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/202410271256.54HHdzzV-lkp@intel.com/
All errors (new ones prefixed by >>):
mm/page_io.c: In function 'swap_read_folio':
>> mm/page_io.c:622:53: error: 'MTHP_STAT_SWPIN' undeclared (first use in this function); did you mean 'MTHP_STAT_SPLIT'?
622 | count_mthp_stat(folio_order(folio), MTHP_STAT_SWPIN);
| ^~~~~~~~~~~~~~~
| MTHP_STAT_SPLIT
mm/page_io.c:622:53: note: each undeclared identifier is reported only once for each function it appears in
vim +622 mm/page_io.c
597
598 void swap_read_folio(struct folio *folio, struct swap_iocb **plug)
599 {
600 struct swap_info_struct *sis = swp_swap_info(folio->swap);
601 bool synchronous = sis->flags & SWP_SYNCHRONOUS_IO;
602 bool workingset = folio_test_workingset(folio);
603 unsigned long pflags;
604 bool in_thrashing;
605
606 VM_BUG_ON_FOLIO(!folio_test_swapcache(folio) && !synchronous, folio);
607 VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio);
608 VM_BUG_ON_FOLIO(folio_test_uptodate(folio), folio);
609
610 /*
611 * Count submission time as memory stall and delay. When the device
612 * is congested, or the submitting cgroup IO-throttled, submission
613 * can be a significant part of overall IO time.
614 */
615 if (workingset) {
616 delayacct_thrashing_start(&in_thrashing);
617 psi_memstall_enter(&pflags);
618 }
619 delayacct_swapin_start();
620
621 if (swap_read_folio_zeromap(folio)) {
> 622 count_mthp_stat(folio_order(folio), MTHP_STAT_SWPIN);
623 count_memcg_folio_events(folio, PSWPIN, folio_nr_pages(folio));
624 count_vm_events(PSWPIN, folio_nr_pages(folio));
625 folio_unlock(folio);
626 goto finish;
627 } else if (zswap_load(folio)) {
628 folio_unlock(folio);
629 goto finish;
630 }
631
632 /* We have to read from slower devices. Increase zswap protection. */
633 zswap_folio_swapin(folio);
634
635 if (data_race(sis->flags & SWP_FS_OPS)) {
636 swap_read_folio_fs(folio, plug);
637 } else if (synchronous) {
638 swap_read_folio_bdev_sync(folio, sis);
639 } else {
640 swap_read_folio_bdev_async(folio, sis);
641 }
642
643 finish:
644 if (workingset) {
645 delayacct_thrashing_end(&in_thrashing);
646 psi_memstall_leave(&pflags);
647 }
648 delayacct_swapin_end();
649 }
650
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2024-10-27 4:38 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-27 1:19 [PATCH RFC] mm: count zeromap read and set for swapout and swapin Barry Song
2024-10-27 2:45 ` Nhat Pham
2024-10-28 2:32 ` Barry Song
2024-10-28 12:23 ` Usama Arif
2024-10-28 16:33 ` Nhat Pham
2024-10-28 17:00 ` Usama Arif
2024-10-28 17:08 ` Yosry Ahmed
2024-10-28 17:19 ` Usama Arif
2024-10-28 19:54 ` Barry Song
2024-10-28 19:58 ` Yosry Ahmed
2024-10-28 20:00 ` Usama Arif
2024-10-28 20:42 ` Barry Song
2024-10-28 20:51 ` Usama Arif
2024-10-28 21:15 ` Barry Song
2024-10-28 21:24 ` Usama Arif
2024-10-28 21:40 ` Barry Song
2024-10-28 21:49 ` Usama Arif
2024-10-28 22:11 ` Barry Song
2024-10-28 22:32 ` Yosry Ahmed
2024-10-28 22:51 ` Barry Song
2024-10-28 22:54 ` Yosry Ahmed
2024-10-28 23:03 ` Barry Song
2024-10-29 17:46 ` Nhat Pham
2024-10-29 17:55 ` Yosry Ahmed
2024-10-30 23:46 ` Nhat Pham
2024-10-28 16:34 ` Nhat Pham
2024-10-28 17:17 ` David Hildenbrand
2024-10-27 4:38 ` kernel test robot
2024-10-27 4:38 ` 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=202410271256.54HHdzzV-lkp@intel.com \
--to=lkp@intel.com \
--cc=21cnbao@gmail.com \
--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.