mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
bcache allocator: send discards with correct size
This commit is contained in:
parent
dbd810ab67
commit
8b326d3a2a
@ -331,7 +331,7 @@ static int bch_allocator_thread(void *arg)
|
||||
mutex_unlock(&ca->set->bucket_lock);
|
||||
blkdev_issue_discard(ca->bdev,
|
||||
bucket_to_sector(ca->set, bucket),
|
||||
ca->sb.block_size, GFP_KERNEL, 0);
|
||||
ca->sb.bucket_size, GFP_KERNEL, 0);
|
||||
mutex_lock(&ca->set->bucket_lock);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user