]> git.baikalelectronics.ru Git - kernel.git/commit
dm space map metadata: constify dm_space_map structures
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 15 Feb 2017 18:13:28 +0000 (23:43 +0530)
committerMike Snitzer <snitzer@redhat.com>
Thu, 16 Feb 2017 19:14:36 +0000 (14:14 -0500)
commitfd1bb7d14fcf99b1b260a3d54ea0072c9cb0f041
treed1f3359b0158aac5d5a886b01a52774f54f35bd2
parentd05b83d3bad87f241181bc97b75e9da2a568511c
dm space map metadata: constify dm_space_map structures

Declare dm_space_map structures as const as they are only passed as an
argument to the function memcpy. This argument is of type const void *,
so dm_space_map structures having this property can be declared as
const.

File size before:
   text    data     bss     dec     hex filename
   4889     240       0    5129    1409 dm-space-map-metadata.o

File size after:
   text    data     bss     dec     hex filename
   5139       0       0    5139    1413 dm-space-map-metadata.o

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/persistent-data/dm-space-map-metadata.c