From: Milan Broz Add crypt prefix to dec_pending to avoid confusing it in backtraces with the dm core function of the same name. No functional change here. Signed-off-by: Milan Broz Signed-off-by: Alasdair G Kergon --- drivers/md/dm-crypt.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) Index: linux-2.6.23-rc8/drivers/md/dm-crypt.c =================================================================== --- linux-2.6.23-rc8.orig/drivers/md/dm-crypt.c 2007-10-02 18:46:30.000000000 +0100 +++ linux-2.6.23-rc8/drivers/md/dm-crypt.c 2007-10-02 18:46:31.000000000 +0100 @@ -481,7 +481,7 @@ static void crypt_free_buffer_pages(stru * One of the bios was finished. Check for completion of * the whole request and correctly clean up the buffer. */ -static void dec_pending(struct dm_crypt_io *io, int error) +static void crypt_dec_pending(struct dm_crypt_io *io, int error) { struct crypt_config *cc = (struct crypt_config *) io->target->private; @@ -560,7 +560,7 @@ static int crypt_endio(struct bio *clone out: bio_put(clone); - dec_pending(io, error); + crypt_dec_pending(io, error); return error; } @@ -591,7 +591,7 @@ static void process_read(struct dm_crypt */ clone = bio_alloc_bioset(GFP_NOIO, bio_segments(base_bio), cc->bs); if (unlikely(!clone)) { - dec_pending(io, -ENOMEM); + crypt_dec_pending(io, -ENOMEM); return; } @@ -626,7 +626,7 @@ static void process_write(struct dm_cryp while (remaining) { clone = crypt_alloc_buffer(io, remaining); if (unlikely(!clone)) { - dec_pending(io, -ENOMEM); + crypt_dec_pending(io, -ENOMEM); return; } @@ -636,7 +636,7 @@ static void process_write(struct dm_cryp if (unlikely(crypt_convert(cc, &ctx) < 0)) { crypt_free_buffer_pages(cc, clone, clone->bi_size); bio_put(clone); - dec_pending(io, -EIO); + crypt_dec_pending(io, -EIO); return; } @@ -671,7 +671,7 @@ static void process_read_endio(struct dm crypt_convert_init(cc, &ctx, io->base_bio, io->base_bio, io->base_bio->bi_sector - io->target->begin, 0); - dec_pending(io, crypt_convert(cc, &ctx)); + crypt_dec_pending(io, crypt_convert(cc, &ctx)); } static void kcryptd_do_work(struct work_struct *work)