]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
dm snapshot: combine consecutive exceptions in memory
authorMilan Broz <mbroz@redhat.com>
Fri, 8 Feb 2008 02:11:27 +0000 (02:11 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 8 Feb 2008 02:11:27 +0000 (02:11 +0000)
commitd74f81f8adc504a23be3babf347b9f69e9389924
tree4a687e400479ad330bb36ded54012cd8b8b84ecf
parent4f7f5c675fd6bacaae3c67be44de872dcff0e3b7
dm snapshot: combine consecutive exceptions in memory

Provided sector_t is 64 bits, reduce the in-memory footprint of the
snapshot exception table by the simple method of using unused bits of
the chunk number to combine consecutive entries.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-snap.c
drivers/md/dm-snap.h