dm.c (b3c9a04135bdbd3aabd5e9534bad0fe6df505f8a) | dm.c (5f27571382ca42daa3e3d40d1b252bf18c2b61d2) |
---|---|
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 --- 498 unchanged lines hidden (view full) --- 507 if (bio_is_flush_with_data(bio)) 508 sectors = 0; 509 else if (likely(!(dm_io_flagged(io, DM_IO_WAS_SPLIT)))) 510 sectors = bio_sectors(bio); 511 else 512 sectors = io->sectors; 513 514 if (!end) | 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 --- 498 unchanged lines hidden (view full) --- 507 if (bio_is_flush_with_data(bio)) 508 sectors = 0; 509 else if (likely(!(dm_io_flagged(io, DM_IO_WAS_SPLIT)))) 510 sectors = bio_sectors(bio); 511 else 512 sectors = io->sectors; 513 514 if (!end) |
515 bdev_start_io_acct(bio->bi_bdev, sectors, bio_op(bio), 516 start_time); | 515 bdev_start_io_acct(bio->bi_bdev, bio_op(bio), start_time); |
517 else | 516 else |
518 bdev_end_io_acct(bio->bi_bdev, bio_op(bio), start_time); | 517 bdev_end_io_acct(bio->bi_bdev, bio_op(bio), sectors, 518 start_time); |
519 520 if (static_branch_unlikely(&stats_enabled) && 521 unlikely(dm_stats_used(&md->stats))) { 522 sector_t sector; 523 524 if (likely(!dm_io_flagged(io, DM_IO_WAS_SPLIT))) 525 sector = bio->bi_iter.bi_sector; 526 else --- 2878 unchanged lines hidden --- | 519 520 if (static_branch_unlikely(&stats_enabled) && 521 unlikely(dm_stats_used(&md->stats))) { 522 sector_t sector; 523 524 if (likely(!dm_io_flagged(io, DM_IO_WAS_SPLIT))) 525 sector = bio->bi_iter.bi_sector; 526 else --- 2878 unchanged lines hidden --- |