]> git.baikalelectronics.ru Git - kernel.git/commit
dm log writes: use struct_size() to calculate size of pending_block
authorZhengyuan Liu <liuzhengyuan@kylinos.cn>
Wed, 12 Jun 2019 06:14:46 +0000 (14:14 +0800)
committerMike Snitzer <snitzer@redhat.com>
Tue, 9 Jul 2019 18:08:41 +0000 (14:08 -0400)
commit51f8de5ad4ab31b83b29406012745d76e637b3c3
tree123ff406b79daba7e310c37f0ca20e6cd8414dfd
parentb3a97cd1ee8101ab47602cf1632cd6fb0ad09be4
dm log writes: use struct_size() to calculate size of pending_block

Use struct_size() to avoid open-coded equivalent that is prone to a type
mistake.

Signed-off-by: Zhengyuan Liu <liuzhengyuan@kylinos.cn>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-log-writes.c