Re: [PATCH] loop: Use bdev limit helpers for configuring discard

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30/10/2024 14:06, Christoph Hellwig wrote:
On Wed, Oct 30, 2024 at 11:19:00AM +0000, John Garry wrote:
+		granularity = bdev_discard_granularity(bdev) ?:
+			bdev_physical_block_size(bdev);
The discard granularity is always set to at least the physical block
size, so this can be simplified to:

		granularity = bdev_discard_granularity(bdev);

ok, I see that set in blk_validate_limits()

Jens has already queued this and it is now buried beneath other patches, so I suppose that this change can be made in the follow on patch.

Cheers





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux