* Re: [PATCH 2/3] bcache: Separate bch_moving_gc() from bch_btree_gc()
[not found] <20230717124143.171-2-mingzhe.zou@easystack.cn>
@ 2023-07-18 23:36 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-18 23:36 UTC (permalink / raw)
To: Mingzhe Zou, colyli, linux-bcache; +Cc: llvm, oe-kbuild-all, bcache, zoumingzhe
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-18 23:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230717124143.171-2-mingzhe.zou@easystack.cn>
2023-07-18 23:36 ` [PATCH 2/3] bcache: Separate bch_moving_gc() from bch_btree_gc() 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;
as well as URLs for NNTP newsgroup(s).