Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcache allocator: send discards with correct size

authored by

Slava Pestov and committed by
Kent Overstreet
8b326d3a dbd810ab

+1 -1
+1 -1
drivers/md/bcache/alloc.c
··· 331 331 mutex_unlock(&ca->set->bucket_lock); 332 332 blkdev_issue_discard(ca->bdev, 333 333 bucket_to_sector(ca->set, bucket), 334 - ca->sb.block_size, GFP_KERNEL, 0); 334 + ca->sb.bucket_size, GFP_KERNEL, 0); 335 335 mutex_lock(&ca->set->bucket_lock); 336 336 } 337 337