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

Re: [dm-devel] [PATCH] dm log: fix create_log_context() to use proper logical_block_size



>>>>> "Mike" == Mike Snitzer <snitzer redhat com> writes:

Mike> create_log_context() must use the logical_block_size from the log
Mike> disk rather than the target's logical_block_size.

Mike>  		buf_size = dm_round_up((LOG_OFFSET << SECTOR_SHIFT) +
Mike>  				       bitset_size,
Mike> - ti->limits.logical_block_size);
Mike> + q->limits.logical_block_size);
 
Please use the accessor functions when possible.

bdev_logical_block_size(lc->header_location.bdev) to the rescue....

-- 
Martin K. Petersen	Oracle Linux Engineering


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