diff options
author | Slava Pestov <sp@daterainc.com> | 2014-04-21 21:22:35 -0400 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2014-08-04 18:23:03 -0400 |
commit | 8b326d3a2a76912dfed2f0ab937d59fae9512ca2 (patch) | |
tree | 55e9be9430d39a7cb8f9403828e29c8f66d6ebce /drivers/md/bcache | |
parent | dbd810ab678d262d3772d29b65844d7b20dc47bc (diff) |
bcache allocator: send discards with correct size
Diffstat (limited to 'drivers/md/bcache')
-rw-r--r-- | drivers/md/bcache/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/alloc.c b/drivers/md/bcache/alloc.c index 443d03fbac47..8eeab72b93e2 100644 --- a/drivers/md/bcache/alloc.c +++ b/drivers/md/bcache/alloc.c | |||
@@ -331,7 +331,7 @@ static int bch_allocator_thread(void *arg) | |||
331 | mutex_unlock(&ca->set->bucket_lock); | 331 | mutex_unlock(&ca->set->bucket_lock); |
332 | blkdev_issue_discard(ca->bdev, | 332 | blkdev_issue_discard(ca->bdev, |
333 | bucket_to_sector(ca->set, bucket), | 333 | bucket_to_sector(ca->set, bucket), |
334 | ca->sb.block_size, GFP_KERNEL, 0); | 334 | ca->sb.bucket_size, GFP_KERNEL, 0); |
335 | mutex_lock(&ca->set->bucket_lock); | 335 | mutex_lock(&ca->set->bucket_lock); |
336 | } | 336 | } |
337 | 337 | ||