Searched refs:sectors_to_gc (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/drivers/md/bcache/ |
H A D | btree.h | 197 atomic_set(&c->sectors_to_gc, c->cache->sb.bucket_size * c->nbuckets / 16); in set_gc_sectors() 295 * Garbage collection thread only works when sectors_to_gc < 0, in force_wake_up_gc() 296 * calling wake_up_gc() won't start gc thread if sectors_to_gc is in force_wake_up_gc() 298 * Therefore sectors_to_gc is set to -1 here, before waking up in force_wake_up_gc() 302 * that c->sectors_to_gc being set to other positive value. So in force_wake_up_gc() 306 atomic_set(&c->sectors_to_gc, -1); in force_wake_up_gc()
|
H A D | bcache.h | 653 atomic_t sectors_to_gc; member
|
H A D | request.c | 195 if (atomic_sub_return(bio_sectors(bio), &op->c->sectors_to_gc) < 0) in bch_data_insert_start()
|
H A D | btree.c | 1848 if (atomic_read(&c->sectors_to_gc) < 0) in gc_should_run()
|
/kernel/linux/linux-6.6/drivers/md/bcache/ |
H A D | btree.h | 197 atomic_set(&c->sectors_to_gc, c->cache->sb.bucket_size * c->nbuckets / 16); in set_gc_sectors() 295 * Garbage collection thread only works when sectors_to_gc < 0, in force_wake_up_gc() 296 * calling wake_up_gc() won't start gc thread if sectors_to_gc is in force_wake_up_gc() 298 * Therefore sectors_to_gc is set to -1 here, before waking up in force_wake_up_gc() 302 * that c->sectors_to_gc being set to other positive value. So in force_wake_up_gc() 306 atomic_set(&c->sectors_to_gc, -1); in force_wake_up_gc()
|
H A D | bcache.h | 659 atomic_t sectors_to_gc; member
|
H A D | request.c | 195 if (atomic_sub_return(bio_sectors(bio), &op->c->sectors_to_gc) < 0) in bch_data_insert_start()
|
H A D | btree.c | 1869 if (atomic_read(&c->sectors_to_gc) < 0) in gc_should_run()
|
Completed in 16 milliseconds