commit | 8b326d3a2a76912dfed2f0ab937d59fae9512ca2 | [log] [tgz] |
---|---|---|
author | Slava Pestov <sp@daterainc.com> | Mon Apr 21 18:22:35 2014 -0700 |
committer | Kent Overstreet <kmo@daterainc.com> | Mon Aug 04 15:23:03 2014 -0700 |
tree | 55e9be9430d39a7cb8f9403828e29c8f66d6ebce | |
parent | dbd810ab678d262d3772d29b65844d7b20dc47bc [diff] |
bcache allocator: send discards with correct size
diff --git a/drivers/md/bcache/alloc.c b/drivers/md/bcache/alloc.c index 443d03f..8eeab72 100644 --- a/drivers/md/bcache/alloc.c +++ b/drivers/md/bcache/alloc.c
@@ -331,7 +331,7 @@ 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); }