]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit015602f2e7aa540b8c31c8bc2c1f74b6406b354b
tree5306d66f4afd6336ee07dc59bd3ddf964b57e318
parenta920cd1d5ab3c83bb72249d91a0ce2f89dc46cb9
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