From: Slava Pestov Date: Tue, 22 Apr 2014 01:22:35 +0000 (-0700) Subject: bcache allocator: send discards with correct size X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=8b326d3a2a76912dfed2f0ab937d59fae9512ca2;p=deliverable%2Flinux.git bcache allocator: send discards with correct size --- 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) 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); }