dm.c (f7b58a69fad9d2c4c90cab0247811155dd0d48e7) | dm.c (666eed46769d929c3e13636134ecfc67d75ef548) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited. 4 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 5 * 6 * This file is released under the GPL. 7 */ 8 --- 1500 unchanged lines hidden (view full) --- 1509 case 1: 1510 if (len) 1511 setup_split_accounting(ci, *len); 1512 clone = alloc_tio(ci, ti, 0, len, GFP_NOIO); 1513 __map_bio(clone); 1514 ret = 1; 1515 break; 1516 default: | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited. 4 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 5 * 6 * This file is released under the GPL. 7 */ 8 --- 1500 unchanged lines hidden (view full) --- 1509 case 1: 1510 if (len) 1511 setup_split_accounting(ci, *len); 1512 clone = alloc_tio(ci, ti, 0, len, GFP_NOIO); 1513 __map_bio(clone); 1514 ret = 1; 1515 break; 1516 default: |
1517 if (len) 1518 setup_split_accounting(ci, *len); |
|
1517 /* dm_accept_partial_bio() is not supported with shared tio->len_ptr */ 1518 alloc_multiple_bios(&blist, ci, ti, num_bios, len); 1519 while ((clone = bio_list_pop(&blist))) { 1520 dm_tio_set_flag(clone_to_tio(clone), DM_TIO_IS_DUPLICATE_BIO); 1521 __map_bio(clone); 1522 ret += 1; 1523 } 1524 break; --- 1883 unchanged lines hidden --- | 1519 /* dm_accept_partial_bio() is not supported with shared tio->len_ptr */ 1520 alloc_multiple_bios(&blist, ci, ti, num_bios, len); 1521 while ((clone = bio_list_pop(&blist))) { 1522 dm_tio_set_flag(clone_to_tio(clone), DM_TIO_IS_DUPLICATE_BIO); 1523 __map_bio(clone); 1524 ret += 1; 1525 } 1526 break; --- 1883 unchanged lines hidden --- |