genhd.c (b217945eab7a0c37738cf37b89fdcc5b17d64c40) | genhd.c (e5d98cc3311fba46646782c913557322afdb1f32) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * gendisk handling 4 * 5 * Portions Copyright (C) 2020 Christoph Hellwig 6 */ 7 8#include <linux/module.h> --- 104 unchanged lines hidden (view full) --- 113 stat->ios[group] += ptr->ios[group]; 114 stat->merges[group] += ptr->merges[group]; 115 } 116 117 stat->io_ticks += ptr->io_ticks; 118 } 119} 120 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * gendisk handling 4 * 5 * Portions Copyright (C) 2020 Christoph Hellwig 6 */ 7 8#include <linux/module.h> --- 104 unchanged lines hidden (view full) --- 113 stat->ios[group] += ptr->ios[group]; 114 stat->merges[group] += ptr->merges[group]; 115 } 116 117 stat->io_ticks += ptr->io_ticks; 118 } 119} 120 |
121static unsigned int part_in_flight(struct block_device *part) | 121unsigned int part_in_flight(struct block_device *part) |
122{ 123 unsigned int inflight = 0; 124 int cpu; 125 126 for_each_possible_cpu(cpu) { 127 inflight += part_stat_local_read_cpu(part, in_flight[0], cpu) + 128 part_stat_local_read_cpu(part, in_flight[1], cpu); 129 } --- 1337 unchanged lines hidden --- | 122{ 123 unsigned int inflight = 0; 124 int cpu; 125 126 for_each_possible_cpu(cpu) { 127 inflight += part_stat_local_read_cpu(part, in_flight[0], cpu) + 128 part_stat_local_read_cpu(part, in_flight[1], cpu); 129 } --- 1337 unchanged lines hidden --- |