dm.c (94818742316e27d01506240cf8b07d69844d31af) | dm.c (bf800ef1816b4283a885e55ad38068aec9711e4d) |
---|---|
1/* 2 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited. 3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 4 * 5 * This file is released under the GPL. 6 */ 7 8#include "dm.h" --- 1115 unchanged lines hidden (view full) --- 1124 1125 tio->info.target_request_nr = request_nr; 1126 1127 /* 1128 * Discard requests require the bio's inline iovecs be initialized. 1129 * ci->bio->bi_max_vecs is BIO_INLINE_VECS anyway, for both flush 1130 * and discard, so no need for concern about wasted bvec allocations. 1131 */ | 1/* 2 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited. 3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 4 * 5 * This file is released under the GPL. 6 */ 7 8#include "dm.h" --- 1115 unchanged lines hidden (view full) --- 1124 1125 tio->info.target_request_nr = request_nr; 1126 1127 /* 1128 * Discard requests require the bio's inline iovecs be initialized. 1129 * ci->bio->bi_max_vecs is BIO_INLINE_VECS anyway, for both flush 1130 * and discard, so no need for concern about wasted bvec allocations. 1131 */ |
1132 clone = bio_alloc_bioset(GFP_NOIO, ci->bio->bi_max_vecs, ci->md->bs); 1133 __bio_clone(clone, ci->bio); | 1132 clone = bio_clone_bioset(ci->bio, GFP_NOIO, ci->md->bs); 1133 |
1134 if (len) { 1135 clone->bi_sector = ci->sector; 1136 clone->bi_size = to_bytes(len); 1137 } 1138 1139 __map_bio(ti, clone, tio); 1140} 1141 --- 1631 unchanged lines hidden --- | 1134 if (len) { 1135 clone->bi_sector = ci->sector; 1136 clone->bi_size = to_bytes(len); 1137 } 1138 1139 __map_bio(ti, clone, tio); 1140} 1141 --- 1631 unchanged lines hidden --- |