dm crypt: tidy ctx pending
authorMilan Broz <mbroz@redhat.com>
Fri, 10 Oct 2008 12:37:08 +0000 (13:37 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 10 Oct 2008 12:37:08 +0000 (13:37 +0100)
commitc8081618a9f832fdf7ca81eb087f9f61f2bf07d5
tree1001d2747eb2a6937ce73469a457eabd364be3c7
parent4e59409891c9cc30cb4d5d73250b0c968af8e39b
dm crypt: tidy ctx pending

Move the initialisation of ctx->pending into one place, at the
start of crypt_convert().

Introduce crypt_finished to indicate whether or not the encryption
is finished, for use in a later patch.

No functional change.

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