mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-18 03:06:43 +00:00
dm log: avoid multiple line dereference
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
This commit is contained in:
parent
fb99e87b44
commit
dcdd467915
@ -447,8 +447,7 @@ static int create_log_context(struct dm_dirty_log *log, struct dm_target *ti,
|
||||
*/
|
||||
buf_size =
|
||||
dm_round_up((LOG_OFFSET << SECTOR_SHIFT) + bitset_size,
|
||||
bdev_logical_block_size(lc->header_location.
|
||||
bdev));
|
||||
bdev_logical_block_size(lc->header_location.bdev));
|
||||
|
||||
if (buf_size > bdev_nr_bytes(dev->bdev)) {
|
||||
DMWARN("log device %s too small: need %llu bytes",
|
||||
|
Loading…
x
Reference in New Issue
Block a user