Christoph, > + /* > + * When discard is not supported, discard_granularity should be reported > + * as 0 to userspace. > + */ > + if (lim->max_discard_sectors) > + lim->discard_granularity = > + max(lim->discard_granularity, lim->physical_block_size); > + else > + lim->discard_granularity = 0; > + Looks good to me! Reviewed-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> -- Martin K. Petersen