bcache allocator: send discards with correct size
authorSlava Pestov <sp@daterainc.com>
Tue, 22 Apr 2014 01:22:35 +0000 (18:22 -0700)
committerKent Overstreet <kmo@daterainc.com>
Mon, 4 Aug 2014 22:23:03 +0000 (15:23 -0700)
drivers/md/bcache/alloc.c

index 443d03fbac4705bd97f5acf77f622e0562b7fc55..8eeab72b93e2c4fcf6573e6a63d768f40f8e5320 100644 (file)
@@ -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);
                        }
 
This page took 0.025146 seconds and 5 git commands to generate.