dm kcopyd: remove nr_pages field from job structure
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 2 Aug 2011 11:32:02 +0000 (12:32 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 2 Aug 2011 11:32:02 +0000 (12:32 +0100)
commit5bf45a3dcdba9ff43959f7b5b44523fab254c19c
tree5306d66f4afd6336ee07dc59bd3ddf964b57e318
parent4622afb3f50e03ce6da42002e7ed3675dfafc187
dm kcopyd: remove nr_pages field from job structure

The nr_pages field in struct kcopyd_job is only used temporarily in
run_pages_job() to count the number of required pages.
We can use a local variable instead.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-kcopyd.c