Commit 8b326d3a authored by Slava Pestov's avatar Slava Pestov Committed by Kent Overstreet
Browse files

bcache allocator: send discards with correct size

parent dbd810ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
			}