summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/writeback.h
diff options
context:
space:
mode:
authorTang Junhui <tang.junhui@zte.com.cn>2017-09-06 14:25:55 +0800
committerJens Axboe <axboe@kernel.dk>2017-09-06 08:17:33 -0600
commit0b43f49dc4d6d3789e936731dc16af94cb57d568 (patch)
tree318ac8d254a2560f7ccb1401a3a105308362925f /drivers/md/bcache/writeback.h
parent09b3efec81def807fb225359e34a8e72866dd9c4 (diff)
bcache: gc does not work when triggering by manual command
I try to execute the following command to trigger gc thread: [root@localhost internal]# echo 1 > trigger_gc But it does not work, I debug the code in gc_should_run(), It works only if in invalidating or sectors_to_gc < 0. So set sectors_to_gc to -1 to meet the condition when we trigger gc by manual command. (Code comments aded by Coly Li) Signed-off-by: Tang Junhui <tang.junhui@zte.com.cn> Reviewed-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/writeback.h')
0 files changed, 0 insertions, 0 deletions