dm exception store: refactor zero_area
authorAlasdair G Kergon <agk@redhat.com>
Tue, 21 Oct 2008 16:44:55 +0000 (17:44 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 21 Oct 2008 16:44:55 +0000 (17:44 +0100)
commit7c9e6c17325fab380fbe9c9787680ff7d4a51abd
tree3d92b66810b90bcef66a0e021e3944f335ebf9fa
parentf68d4f3d394da5b1f69d855b8513f4256ccc803e
dm exception store: refactor zero_area

Use a separate buffer for writing zeroes to the on-disk snapshot
exception store, make the updating of ps->current_area explicit and
refactor the code in preparation for the fix in the next patch.

No functional change.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@kernel.org
drivers/md/dm-exception-store.c