From 211b9c02a2879e81a3ece16519e6957b6d7adeeb Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 21 Sep 2004 18:31:58 -0700 Subject: [PATCH] [PATCH] bio_unmap_user(): original bio passed in With the recent bio mapping changes, the caller must pass in the original bio for unmapping again (and they do). So kill this dead code, it could cause problems in situations where someone has used bi_private for something else. Signed-off-by: Jens Axboe Signed-off-by: Linus Torvalds --- fs/bio.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/fs/bio.c b/fs/bio.c index 063c597a77cfe..27c17b329fc91 100644 --- a/fs/bio.c +++ b/fs/bio.c @@ -603,18 +603,6 @@ static void __bio_unmap_user(struct bio *bio) struct bio_vec *bvec; int i; - /* - * find original bio if it was bounced - */ - if (bio->bi_private) { - /* - * someone stole our bio, must not happen - */ - BUG_ON(!bio_flagged(bio, BIO_BOUNCED)); - - bio = bio->bi_private; - } - /* * make sure we dirty pages we wrote to */ -- 2.53.0