From: kernel test robot <lkp@intel.com>
To: Mingzhe Zou <mingzhe.zou@easystack.cn>,
colyli@suse.de, linux-bcache@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
bcache@lists.ewheeler.net, zoumingzhe@qq.com
Subject: Re: [PATCH 2/3] bcache: Separate bch_moving_gc() from bch_btree_gc()
Date: Wed, 19 Jul 2023 07:36:58 +0800 [thread overview]
Message-ID: <202307190705.ByiMYJwf-lkp@intel.com> (raw)
In-Reply-To: <20230717124143.171-2-mingzhe.zou@easystack.cn>
Hi Mingzhe,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on v6.5-rc2 next-20230718]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Mingzhe-Zou/bcache-Separate-bch_moving_gc-from-bch_btree_gc/20230718-195022
base: linus/master
patch link: https://lore.kernel.org/r/20230717124143.171-2-mingzhe.zou%40easystack.cn
patch subject: [PATCH 2/3] bcache: Separate bch_moving_gc() from bch_btree_gc()
config: i386-randconfig-r024-20230718 (https://download.01.org/0day-ci/archive/20230719/202307190705.ByiMYJwf-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: (https://download.01.org/0day-ci/archive/20230719/202307190705.ByiMYJwf-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/202307190705.ByiMYJwf-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/md/bcache/movinggc.c:236:6: error: no member named 'sb' in 'struct cache_set'
c->sb.set_uuid, sectors_to_move, ca->heap.used);
~ ^
include/linux/printk.h:528:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/printk.h:455:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/printk.h:427:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
1 error generated.
vim +236 drivers/md/bcache/movinggc.c
196
197 void bch_moving_gc(struct cache_set *c)
198 {
199 struct cache *ca = c->cache;
200 struct bucket *b;
201 unsigned long sectors_to_move, reserve_sectors;
202
203 c->cache->only_moving_gc = 0;
204
205 if (!c->copy_gc_enabled)
206 return;
207
208 mutex_lock(&c->bucket_lock);
209
210 sectors_to_move = 0;
211 reserve_sectors = ca->sb.bucket_size *
212 fifo_used(&ca->free[RESERVE_MOVINGGC]);
213
214 ca->heap.used = 0;
215
216 for_each_bucket(b, ca) {
217 if (GC_MOVE(b) || GC_MARK(b) == GC_MARK_METADATA ||
218 !b->gc_sectors_used ||
219 b->gc_sectors_used == ca->sb.bucket_size ||
220 atomic_read(&b->pin))
221 continue;
222
223 if (!heap_full(&ca->heap)) {
224 sectors_to_move += b->gc_sectors_used;
225 heap_add(&ca->heap, b, bucket_cmp);
226 } else if (bucket_cmp(b, heap_peek(&ca->heap))) {
227 sectors_to_move -= bucket_heap_top(ca);
228 sectors_to_move += b->gc_sectors_used;
229
230 ca->heap.data[0] = b;
231 heap_sift(&ca->heap, 0, bucket_cmp);
232 }
233 }
234
235 pr_info("moving gc: on set %pU, %lu sectors from %zu buckets",
> 236 c->sb.set_uuid, sectors_to_move, ca->heap.used);
237
238 while (sectors_to_move > reserve_sectors) {
239 heap_pop(&ca->heap, b, bucket_cmp);
240 sectors_to_move -= b->gc_sectors_used;
241 }
242
243 while (heap_pop(&ca->heap, b, bucket_cmp))
244 SET_GC_MOVE(b, 1);
245
246 mutex_unlock(&c->bucket_lock);
247
248 c->moving_gc_keys.last_scanned = ZERO_KEY;
249
250 read_moving(c);
251 }
252
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-07-18 23:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-17 12:41 [PATCH 1/3] bcache: the gc_sectors_used size matches the bucket size Mingzhe Zou
2023-07-17 12:41 ` [PATCH 2/3] bcache: Separate bch_moving_gc() from bch_btree_gc() Mingzhe Zou
2023-07-18 23:36 ` kernel test robot [this message]
2023-07-19 2:46 ` kernel test robot
2023-07-17 12:41 ` [PATCH 3/3] bcache: only copy dirty data during moving gc Mingzhe Zou
2023-07-18 22:55 ` [PATCH 1/3] bcache: the gc_sectors_used size matches the bucket size kernel test robot
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=202307190705.ByiMYJwf-lkp@intel.com \
--to=lkp@intel.com \
--cc=bcache@lists.ewheeler.net \
--cc=colyli@suse.de \
--cc=linux-bcache@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mingzhe.zou@easystack.cn \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=zoumingzhe@qq.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).