dm snapshot: persistent use define for disk header chunk size
authorTomohiro Kusumi <kusumi.tomohiro@jp.fujitsu.com>
Thu, 12 Aug 2010 03:13:59 +0000 (04:13 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 12 Aug 2010 03:13:59 +0000 (04:13 +0100)
commit87c961cb747fa55b664b76abfcb9d44c14ae851f
tree2aefac4f795bd211bb60c13c4ea401bd6a747e1b
parenta9c88f2ebc1a5937915cb3b89c9f03894134f39a
dm snapshot: persistent use define for disk header chunk size

This patch fixes hard-coded value for the size of a chunk that includes
disk header for persistent snapshot. It should be changed to existing
macro NUM_SNAPSHOT_HDR_CHUNKS instead of using hard-coded value 1.

Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@jp.fujitsu.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-snap-persistent.c